We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
// app/config/services.php return function (ContainerConfigurator $container) { $container->import('legacy_services.php'); $params = $container->parameters(); $params->set('app.foo_param', 'param_value'); $container = $container->services()->defaults() ->private() ->autoconfigure() ->autowire(); $container ->load('App\\', '../src/*') ->exclude('../src/{Entity,Repository,Tests}'); $container ->load('App\\Controller\\', '../src/Controller') ->tag('controller.service_arguments'); $container->set(FooClass::class) ->args(['some_argument', ref(BarClass::class)]) ->tag('kernel.event_listener', ['event' => 'kernel.exception']); $container->alias('foo', FooClass::class)->public(); };
https://symfony.com/blog/new-in-symfony-3-4-php-based-configuration-for-services-and-routes
symfony/symfony#23834
The text was updated successfully, but these errors were encountered:
Symfony 3.4 completion for PHP-based configuration for services #1041 …
f98d315
…and optimize instance checks includes support for traits
No branches or pull requests
https://symfony.com/blog/new-in-symfony-3-4-php-based-configuration-for-services-and-routes
symfony/symfony#23834
The text was updated successfully, but these errors were encountered: