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

Replace AbstractController with ControllerTrait & ContainerAwareInterface #204

Merged
merged 1 commit into from
Oct 15, 2020

Conversation

pamil
Copy link
Contributor

@pamil pamil commented Oct 15, 2020

We can't use AbstractController if we want to keep BC - AbstractController requires a service locator with predefined dependencies and ResourceController requires a container with all public services for BC purposes.

@pamil pamil requested a review from a team as a code owner October 15, 2020 16:35
@pamil pamil merged commit 71da2eb into Sylius:master Oct 15, 2020
@pamil pamil deleted the controller-trait branch October 15, 2020 18:13
@@ -58,8 +58,6 @@ protected function setClassesParameters(ContainerBuilder $container, MetadataInt

protected function addController(ContainerBuilder $container, MetadataInterface $metadata): void
{
$viewHandler = new Reference('sylius.resource_controller.view_handler', ContainerInterface::NULL_ON_INVALID_REFERENCE);
Copy link
Member

Choose a reason for hiding this comment

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

@pamil Why removing this?

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.

2 participants