diff --git a/config/bundles.php b/config/bundles.php index be0ef07..7ecd493 100644 --- a/config/bundles.php +++ b/config/bundles.php @@ -18,4 +18,5 @@ return [ Scheb\TwoFactorBundle\SchebTwoFactorBundle::class => ['all' => true], Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle::class => ['all' => true], App\Core\Bundle\CoreBundle::class => ['all' => true], + App\Bundle\AppBundle::class => ['all' => true], ]; diff --git a/config/packages/twig.yaml b/config/packages/twig.yaml index a059d51..da46d6e 100644 --- a/config/packages/twig.yaml +++ b/config/packages/twig.yaml @@ -2,4 +2,5 @@ twig: default_path: '%kernel.project_dir%/templates' form_themes: ['@Core/form/bootstrap_4_form_theme.html.twig'] paths: + '%kernel.project_dir%/templates/core/': Core '%kernel.project_dir%/core/Resources/views/': Core diff --git a/core/Controller/Dashboard/DashboardAdminController.php b/core/Controller/Dashboard/DashboardAdminController.php index 9000b83..eb33ba8 100644 --- a/core/Controller/Dashboard/DashboardAdminController.php +++ b/core/Controller/Dashboard/DashboardAdminController.php @@ -16,7 +16,7 @@ class DashboardAdminController extends AdminController */ public function index(): Response { - return $this->render('@Core/dashboard/admin/index.html.twig', [ + return $this->render('@Core/dashboard/index.html.twig', [ ]); } diff --git a/core/Resources/views/admin/layout.html.twig b/core/Resources/views/admin/layout.html.twig index 7419c30..5d39537 100644 --- a/core/Resources/views/admin/layout.html.twig +++ b/core/Resources/views/admin/layout.html.twig @@ -21,14 +21,8 @@
- + {{ include('@Core/admin/module/account.html.twig') }}
- - {% block body_container %} diff --git a/core/Resources/views/admin/module/account.html.twig b/core/Resources/views/admin/module/account.html.twig index f8adf7f..26ac44e 100644 --- a/core/Resources/views/admin/module/account.html.twig +++ b/core/Resources/views/admin/module/account.html.twig @@ -1,16 +1,15 @@ -
-
- - diff --git a/core/Resources/views/dashboard/admin/index.html.twig b/core/Resources/views/dashboard/admin/index.html.twig deleted file mode 100644 index cafe4a6..0000000 --- a/core/Resources/views/dashboard/admin/index.html.twig +++ /dev/null @@ -1 +0,0 @@ -{% extends '@Core/admin/layout.html.twig' %} diff --git a/src/Bundle/AppBundle.php b/src/Bundle/AppBundle.php new file mode 100644 index 0000000..06b408c --- /dev/null +++ b/src/Bundle/AppBundle.php @@ -0,0 +1,23 @@ +getConfiguration($configs, $container); + $config = $this->processConfiguration($configuration, $configs); + + $container->setParameter('app', $config); + } + + /** + * {@inheritdoc} + */ + public function getConfiguration(array $configs, ContainerBuilder $container) + { + return new Configuration(); + } +} diff --git a/src/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php new file mode 100644 index 0000000..24350d6 --- /dev/null +++ b/src/DependencyInjection/Configuration.php @@ -0,0 +1,16 @@ + +
+
+

+ Tableau de bord +

+
+
+
+{% endblock %}