mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-03 21:34:59 +00:00
upload and retrieve document
This commit is contained in:
@@ -26,12 +26,15 @@ class ChillDocStoreExtension extends Extension implements PrependExtensionInterf
|
||||
|
||||
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
|
||||
$loader->load('services.yml');
|
||||
$loader->load('services/media.yml');
|
||||
|
||||
}
|
||||
|
||||
public function prepend(ContainerBuilder $container)
|
||||
{
|
||||
$this->prependRoute($container);
|
||||
$this->prependAuthorization($container);
|
||||
$this->prependTwig($container);
|
||||
}
|
||||
|
||||
protected function prependRoute(ContainerBuilder $container)
|
||||
@@ -40,7 +43,8 @@ class ChillDocStoreExtension extends Extension implements PrependExtensionInterf
|
||||
$container->prependExtensionConfig('chill_main', array(
|
||||
'routing' => array(
|
||||
'resources' => array(
|
||||
'@ChillDocStoreBundle/Resources/config/routing.yml'
|
||||
'@ChillDocStoreBundle/Resources/config/routing.yml',
|
||||
'@ChampsLibresAsyncUploaderBundle/Resources/config/routing.yml'
|
||||
)
|
||||
)
|
||||
));
|
||||
@@ -57,4 +61,12 @@ class ChillDocStoreExtension extends Extension implements PrependExtensionInterf
|
||||
)
|
||||
));
|
||||
}
|
||||
|
||||
protected function prependTwig(ContainerBuilder $container)
|
||||
{
|
||||
$twigConfig = array(
|
||||
'form_themes' => array('@ChillDocStore/Form/fields.html.twig')
|
||||
);
|
||||
$container->prependExtensionConfig('twig', $twigConfig);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user