-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Make the container fully fulfill PSR container interface #36417
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
Conversation
bdc3e43 to
dbcd9bc
Compare
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.
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.
Thanks!
Would include extending And I do not know the server backport policies, but I would highly appreciate to have this in NC25. |
dbcd9bc to
aadc0ba
Compare
|
Let's only fix the PSR compliance here to keep this backportable and do the bump for master/26 only. |
|
I have no clue why drone is failing, but it seems unrelated |
|
Test\AppFramework\Utility\SimpleContainerTest::testNothingRegistered sounds related |
aadc0ba to
3310629
Compare
| * Class QueryException | ||
| * | ||
| * The class extends `NotFoundExceptionInterface` since 20.0.0 | ||
| * The class extends `ContainerExceptionInterface` since 20.0.0 |
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.
Noticed this commend was wrong, as the class did not extend the not found interface but the container exception interface. Fixed.
3310629 to
6465d73
Compare
6465d73 to
2f18180
Compare
|
|
|
|
For the encryption error just rebase, the above error is your code change and needs fixing/adjusting |
a9962e1 to
795370d
Compare
…rface if class not found Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
795370d to
0e83576
Compare
|
@nickvergessen thank you! I forgot to handle querying with autoloading enabled, this is fixed now and the test passes. |
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
0e83576 to
3b2d01f
Compare
|
Something to document in #34692 ? |
|
/backport to stable25 |
|
The backport to stable25 failed. Please do this backport manually. |
Summary
To fulfill the PSR container interface it must throw
NotFoundExceptionInterfaceif the requested name was not found within the container.Added a simple private wrapper over the
QueryExceptionimplementing theNotFoundExceptionInterfacewhich is only thrown if the query was not found, this way the public API should be unchanged and only the thrown error additionally implementsNotFoundExceptionInterface.Checklist