New issue
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
[ContainerBuilder] getDefinitionByType() method added #137
Conversation
Ping @dg |
What needs to be done here? |
Can it return NULL? |
Well, that was my first idea. But having What do you think? |
So annotation |
I see. That is leftover from 1st idea. Fixed! |
Great, thanks! |
Awesome, thanks a lot! |
For others, here are all use cases I used it in: deprecated-packages/symplify@1e8854c Requires |
* Gets the service definition of the specified type. | ||
* @param string | ||
* @return ServiceDefinition|NULL | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can it return NULL?
All is described in the issue: #130
Behavior is compatible with with
getDefiniton()
- exception is thrown when not found.This method is called in cases where Definition is required.