From 7fe0f08300a92b8ace3aade1aa692db6d08d452e Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Tue, 21 Sep 2021 10:48:40 +0200 Subject: [PATCH] tp api endpoints: use default controller (fix) --- .../DependencyInjection/ChillThirdPartyExtension.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Bundle/ChillThirdPartyBundle/DependencyInjection/ChillThirdPartyExtension.php b/src/Bundle/ChillThirdPartyBundle/DependencyInjection/ChillThirdPartyExtension.php index 0331e007d..9b23222c6 100644 --- a/src/Bundle/ChillThirdPartyBundle/DependencyInjection/ChillThirdPartyExtension.php +++ b/src/Bundle/ChillThirdPartyBundle/DependencyInjection/ChillThirdPartyExtension.php @@ -44,7 +44,7 @@ class ChillThirdPartyExtension extends Extension implements PrependExtensionInte $this->preprendRoutes($container); $this->prependRoleHierarchy($container); } - + protected function preprendRoutes(ContainerBuilder $container) { //declare routes for 3party bundle @@ -60,7 +60,7 @@ class ChillThirdPartyExtension extends Extension implements PrependExtensionInte 'name' => 'thirdparty', 'base_path' => '/api/1.0/thirdparty/thirdparty', 'base_role' => \Chill\ThirdPartyBundle\Security\Authorization\ThirdPartyVoter::class, - 'controller' => \Chill\ThirdPartyBundle\Controller\ThirdPartyApiController::class, + //'controller' => \Chill\ThirdPartyBundle\Controller\ThirdPartyApiController::class, 'actions' => [ '_index' => [ 'methods' => [ @@ -87,7 +87,7 @@ class ChillThirdPartyExtension extends Extension implements PrependExtensionInte ], )); } - + protected function prependRoleHierarchy(ContainerBuilder $container) { $container->prependExtensionConfig('security', array(