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
Used PHP-DI and liked the way of configuring services, e.g. constructor injection for scalar values.
return [ 'Logger' => DI\create() ->constructor('/tmp/app.log'), ];
How can stuff like this be done when using this config lib?
The text was updated successfully, but these errors were encountered:
Okay... just using it in services works, actual problem was using it in autowires.
services
autowires
return [ 'dependencies' => [ 'services' => [ Psr\Log\LoggerInterface::class => DI\autowire(Monolog\Logger::class) ->constructor('default') ->method('pushHandler', DI\get(Monolog\Handler\StreamHandler::class)), Monolog\Handler\StreamHandler::class => DI\autowire() ->constructor('php://stdout'), ], ], ];
Sorry, something went wrong.
No branches or pull requests
Used PHP-DI and liked the way of configuring services, e.g. constructor injection for scalar values.
How can stuff like this be done when using this config lib?
The text was updated successfully, but these errors were encountered: