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
There should be possibility to calling some method during service initialization. It can be array in the next argument for add() method.
For example: $container->addShared('someService', SomeService::class, [], [ 'create', ]);
$container->addShared('someService', SomeService::class, [], [ 'create', ]);
will call create() method after adding service to DI container.
The text was updated successfully, but these errors were encountered:
kocuj
No branches or pull requests
There should be possibility to calling some method during service initialization. It can be array in the next argument for add() method.
For example:
$container->addShared('someService', SomeService::class, [], [ 'create', ]);
will call create() method after adding service to DI container.
The text was updated successfully, but these errors were encountered: