Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[DI][Routing] Allow invokable objects to be used as PHP-DSL loaders#27065
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
nicolas-grekas commentedApr 26, 2018
Thanks :) |
aurimasniekis commentedApr 26, 2018 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
For which case? When tried to supply array callback? Because when array would be passed nothing will happen so I don't know what to test against. |
nicolas-grekas commentedApr 26, 2018
For the case when you pass an invokable object. |
aurimasniekis commentedApr 26, 2018
Oh right forgot about this simple case 😊 |
aurimasniekis commentedApr 26, 2018
@nicolas-grekas I don't know about Routing test I did not want to introduce copied test case so I just extended existing test case there. |
| @@ -0,0 +1,10 @@ | |||
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.
extra unneeded line
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.
fabpot commentedApr 27, 2018
Thank you@aurimasniekis. |
…P-DSL loaders (aurimasniekis)This PR was squashed before being merged into the 4.1-dev branch (closes#27065).Discussion----------[DI][Routing] Allow invokable objects to be used as PHP-DSL loaders| Q | A| ------------- | ---| Branch? | master| Bug fix? | no| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets |#26583,#25630| License | MIT| Doc PR | noneChanged DI/Router PHPFileLoader to check is_object && is_callable instead of instance of ClosureCommits-------662ff7e [DI][Routing] Allow invokable objects to be used as PHP-DSL loaders
Uh oh!
There was an error while loading.Please reload this page.
Changed DI/Router PHPFileLoader to check is_object && is_callable instead of instance of Closure