mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 05:44:24 +00:00
tp api endpoints: use default controller (fix)
This commit is contained in:
parent
7d2e82d69b
commit
7fe0f08300
@ -44,7 +44,7 @@ class ChillThirdPartyExtension extends Extension implements PrependExtensionInte
|
|||||||
$this->preprendRoutes($container);
|
$this->preprendRoutes($container);
|
||||||
$this->prependRoleHierarchy($container);
|
$this->prependRoleHierarchy($container);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function preprendRoutes(ContainerBuilder $container)
|
protected function preprendRoutes(ContainerBuilder $container)
|
||||||
{
|
{
|
||||||
//declare routes for 3party bundle
|
//declare routes for 3party bundle
|
||||||
@ -60,7 +60,7 @@ class ChillThirdPartyExtension extends Extension implements PrependExtensionInte
|
|||||||
'name' => 'thirdparty',
|
'name' => 'thirdparty',
|
||||||
'base_path' => '/api/1.0/thirdparty/thirdparty',
|
'base_path' => '/api/1.0/thirdparty/thirdparty',
|
||||||
'base_role' => \Chill\ThirdPartyBundle\Security\Authorization\ThirdPartyVoter::class,
|
'base_role' => \Chill\ThirdPartyBundle\Security\Authorization\ThirdPartyVoter::class,
|
||||||
'controller' => \Chill\ThirdPartyBundle\Controller\ThirdPartyApiController::class,
|
//'controller' => \Chill\ThirdPartyBundle\Controller\ThirdPartyApiController::class,
|
||||||
'actions' => [
|
'actions' => [
|
||||||
'_index' => [
|
'_index' => [
|
||||||
'methods' => [
|
'methods' => [
|
||||||
@ -87,7 +87,7 @@ class ChillThirdPartyExtension extends Extension implements PrependExtensionInte
|
|||||||
],
|
],
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function prependRoleHierarchy(ContainerBuilder $container)
|
protected function prependRoleHierarchy(ContainerBuilder $container)
|
||||||
{
|
{
|
||||||
$container->prependExtensionConfig('security', array(
|
$container->prependExtensionConfig('security', array(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user