rdv: add route, twig for listing and creating calendar items

This commit is contained in:
nobohan
2021-07-16 11:58:30 +02:00
parent 75caf3fa14
commit b01eba2533
11 changed files with 540 additions and 292 deletions

View File

@@ -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'
)
)
));
}
}