Skip to content
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

[HttpKernel] Skip ContainerAwareInterface::setContainer from service_arguments actions registration #22340

Merged
merged 1 commit into from Apr 7, 2017

Conversation

chalasr
Copy link
Member

@chalasr chalasr commented Apr 7, 2017

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets n/a
License MIT
Doc PR n/a

As it would never be used

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

👍

@nicolas-grekas nicolas-grekas added this to the 3.3 milestone Apr 7, 2017
@@ -65,11 +66,15 @@ public function process(ContainerBuilder $container)
if (!$r = $container->getReflectionClass($class)) {
throw new InvalidArgumentException(sprintf('Class "%s" used for service "%s" cannot be found.', $class, $id));
}
$isContainerAware = $r->implementsInterface(ContainerAwareInterface::class);
Copy link
Member

Choose a reason for hiding this comment

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

missing || $r->isSubclassOf(AbstractController::class);

Copy link
Member Author

Choose a reason for hiding this comment

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

nice catch, fixed

@chalasr chalasr force-pushed the service_args-skip-setcontainer branch 4 times, most recently from dac676c to c0c5c37 Compare April 7, 2017 13:44
@chalasr chalasr force-pushed the service_args-skip-setcontainer branch from c0c5c37 to ad59e18 Compare April 7, 2017 13:58
@fabpot
Copy link
Member

fabpot commented Apr 7, 2017

Thank you @chalasr.

@fabpot fabpot merged commit ad59e18 into symfony:master Apr 7, 2017
fabpot added a commit that referenced this pull request Apr 7, 2017
…om service_arguments actions registration (chalasr)

This PR was merged into the 3.3-dev branch.

Discussion
----------

[HttpKernel] Skip ContainerAwareInterface::setContainer from service_arguments actions registration

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

As it would never be used

Commits
-------

ad59e18 Skip ContainerAwareInterface::setContainer from service_arguments actions registration
@chalasr chalasr deleted the service_args-skip-setcontainer branch April 7, 2017 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants