mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
rdv: add route, twig for listing and creating calendar items
This commit is contained in:
@@ -23,26 +23,28 @@ class ChillCalendarExtension extends Extension implements PrependExtensionInterf
|
||||
$configuration = new Configuration();
|
||||
$config = $this->processConfiguration($configuration, $configs);
|
||||
|
||||
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../config'));
|
||||
$loader->load('services/fixtures.yaml');
|
||||
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
|
||||
$loader->load('services.yml');
|
||||
$loader->load('services/controller.yml');
|
||||
$loader->load('services/fixtures.yml');
|
||||
}
|
||||
|
||||
public function prepend(ContainerBuilder $container)
|
||||
{
|
||||
// $this->preprendRoutes($container);
|
||||
$this->preprendRoutes($container);
|
||||
}
|
||||
|
||||
// protected function preprendRoutes(ContainerBuilder $container)
|
||||
// {
|
||||
protected function preprendRoutes(ContainerBuilder $container)
|
||||
{
|
||||
|
||||
// $container->prependExtensionConfig('chill_main', array(
|
||||
// 'routing' => array(
|
||||
// 'resources' => array(
|
||||
// '@ChillCalendarBundle/config/routes.yaml'
|
||||
// )
|
||||
// )
|
||||
// ));
|
||||
// }
|
||||
$container->prependExtensionConfig('chill_main', array(
|
||||
'routing' => array(
|
||||
'resources' => array(
|
||||
'@ChillCalendarBundle/Resources/config/routing.yml'
|
||||
)
|
||||
)
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user