diff --git a/packages/EasyApiPlatform/bundle/config/filters.php b/packages/EasyApiPlatform/bundle/config/filters.php index b9155cc43c..f65b21231c 100644 --- a/packages/EasyApiPlatform/bundle/config/filters.php +++ b/packages/EasyApiPlatform/bundle/config/filters.php @@ -8,6 +8,9 @@ return static function (ContainerConfigurator $containerConfigurator): void { $services = $containerConfigurator->services(); + $services->defaults() + ->autowire() + ->autoconfigure(); $services->set('eonx.api_platform.doctrine.orm.advanced_search_filter', AdvancedSearchFilter::class) ->autoconfigure(false) diff --git a/packages/EasyEventDispatcher/bundle/config/services.php b/packages/EasyEventDispatcher/bundle/config/services.php index bda575ca99..f23e85b6d3 100644 --- a/packages/EasyEventDispatcher/bundle/config/services.php +++ b/packages/EasyEventDispatcher/bundle/config/services.php @@ -7,9 +7,12 @@ use EonX\EasyEventDispatcher\Dispatcher\EventDispatcherInterface; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface as SymfonyEventDispatcherInterface; -return static function (ContainerConfigurator $container): void { - $container - ->services() - ->set(EventDispatcherInterface::class, EventDispatcher::class) +return static function (ContainerConfigurator $containerConfigurator): void { + $services = $containerConfigurator->services(); + $services->defaults() + ->autowire() + ->autoconfigure(); + + $services->set(EventDispatcherInterface::class, EventDispatcher::class) ->args([service(SymfonyEventDispatcherInterface::class)]); };