Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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
lookyman merged 3 commits into master from type-specifying-extensions
Jul 30, 2018

Conversation

@lookyman
Copy link
Collaborator

@lookyman lookyman commented Jul 29, 2018

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
edited
Loading

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

@ondrejmirtes ondrejmirtes Jul 30, 2018

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

Reviewers

@ondrejmirtes ondrejmirtes ondrejmirtes left review comments

+1 more reviewer

@alcaeus alcaeus alcaeus left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /