-
Notifications
You must be signed in to change notification settings - Fork 95
Extensions for ContainerInterface|Controller::has() #7
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
9de4f92
to
843196c
Compare
664b6ba
to
4d3f508
Compare
4d3f508
to
7857d54
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.
I tested your changes and they fixed the errors I was getting 👍
I've taken the liberty to leave some nit-picky feedback.
|
||
public function getClass(): string | ||
{ | ||
return 'Symfony\Component\DependencyInjection\ContainerInterface'; |
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.
This should use the ::class
constant instead of a string classname.
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 is a reason for a simple string here, trust me. 😊
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.
Genuinely curious, why so?
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.
To keep Composer Requirement Checker shut up. And we keep it shut up because we don't want to have symfony
packages in require
.
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.
Ah, I didn't know Composer Requirement Checker complains about those as well. Thanks for letting me know! 👍
|
||
public function getClass(): string | ||
{ | ||
return 'Symfony\Bundle\FrameworkBundle\Controller\Controller'; |
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.
This should use the ::class
constant instead of a string classname.
No description provided.