fix code style for AccompanyingPeriodWorkEvaluation

This commit is contained in:
nobohan
2022-02-25 15:31:24 +01:00
parent 1826b20b40
commit 4bd50d0148
4 changed files with 35 additions and 36 deletions

View File

@@ -50,6 +50,27 @@ class ChillDocStoreExtension extends Extension implements PrependExtensionInterf
$this->prependApis($container);
}
protected function prependApis(ContainerBuilder $container)
{
$container->prependExtensionConfig('chill_main', [
'apis' => [
[
'class' => \Chill\DocStoreBundle\Entity\StoredObject::class,
'name' => 'stored_object',
'base_path' => '/api/1.0/docstore/stored-object',
'base_role' => 'ROLE_USER',
'actions' => [
'_entity' => [
'methods' => [
Request::METHOD_POST => true,
],
],
],
],
],
]);
}
protected function prependAuthorization(ContainerBuilder $container)
{
$container->prependExtensionConfig('security', [
@@ -86,25 +107,4 @@ class ChillDocStoreExtension extends Extension implements PrependExtensionInterf
];
$container->prependExtensionConfig('twig', $twigConfig);
}
protected function prependApis(ContainerBuilder $container)
{
$container->prependExtensionConfig('chill_main', [
'apis' => [
[
'class' => \Chill\DocStoreBundle\Entity\StoredObject::class,
'name' => 'stored_object',
'base_path' => '/api/1.0/docstore/stored-object',
'base_role' => 'ROLE_USER',
'actions' => [
'_entity' => [
'methods' => [
Request::METHOD_POST => true,
],
],
],
],
]
]);
}
}