Skip to content

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

Merged
merged 3 commits into from
Jul 30, 2018

Conversation

lookyman
Copy link
Collaborator

No description provided.

@lookyman lookyman changed the title Type specifying extensions for ContainerInterface|Controller::has() Extensions for ContainerInterface|Controller::has() Jul 29, 2018
@lookyman lookyman force-pushed the type-specifying-extensions branch 2 times, most recently from 9de4f92 to 843196c Compare July 30, 2018 07:26
@lookyman lookyman force-pushed the type-specifying-extensions branch from 664b6ba to 4d3f508 Compare July 30, 2018 07:29
@lookyman lookyman force-pushed the type-specifying-extensions branch from 4d3f508 to 7857d54 Compare July 30, 2018 09:37
Copy link
Contributor

@alcaeus alcaeus left a 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';
Copy link
Contributor

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.

Copy link
Collaborator Author

@lookyman lookyman Jul 30, 2018

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. 😊

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Genuinely curious, why so?

Copy link
Member

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.

Copy link
Contributor

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';
Copy link
Contributor

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.

@lookyman lookyman merged commit d7d1624 into master Jul 30, 2018
@lookyman lookyman deleted the type-specifying-extensions branch July 30, 2018 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants