diff --git a/README.md b/README.md index 30c99dc69744e7028052fe88a4725fad5926a66d..380aa2d28373d2c03c855ba5fd26953a9ecac091 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ A Symfony project created on April 21, 2018, 5:31 pm. + Changelog ========= diff --git a/app/AppKernel.php b/app/AppKernel.php index d3e300f8237f45978ba04ffb2fc2c2618ceab608..192b8e141a4a6af2b13b242f6b960f335386f877 100644 --- a/app/AppKernel.php +++ b/app/AppKernel.php @@ -17,6 +17,7 @@ class AppKernel extends Kernel new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(), new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(), new AppBundle\AppBundle(), + new PotageBundle\PotageBundle(), ]; if (in_array($this->getEnvironment(), ['dev', 'test'], true)) { diff --git a/app/config/config.yml b/app/config/config.yml index ed744a3f50b6022ba635b811c06c83f8c4031f7c..cfd045b2c4052e7115e609291345d48c9b70b267 100644 --- a/app/config/config.yml +++ b/app/config/config.yml @@ -2,6 +2,7 @@ imports: - { resource: parameters.yml } - { resource: security.yml } - { resource: services.yml } + - { resource: "@PotageBundle/Resources/config/services.yml" } # Put parameters here that don't need to change on each machine where the app is deployed # https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration diff --git a/app/config/routing.yml b/app/config/routing.yml index 2ec067f4c707d5c30c0ae38c61aef9b4c9f8bdb9..936ddb7308274ceefcaf5dcfc741d66fdca17a3b 100644 --- a/app/config/routing.yml +++ b/app/config/routing.yml @@ -1,3 +1,7 @@ +potage: + resource: "@PotageBundle/Resources/config/routing.yml" + prefix: / + app: resource: '@AppBundle/Controller/' type: annotation diff --git a/composer.json b/composer.json index ffa779fa456976e3aad08c01b167f1d7a40cb0c5..9c8ad424150d4fac6baded1f1a49229f675a14f4 100644 --- a/composer.json +++ b/composer.json @@ -4,6 +4,7 @@ "type": "project", "autoload": { "psr-4": { + "PotageBundle\\": "src/PotageBundle", "AppBundle\\": "src/AppBundle" }, "classmap": [ diff --git a/src/PotageBundle/Controller/DefaultController.php b/src/PotageBundle/Controller/DefaultController.php new file mode 100644 index 0000000000000000000000000000000000000000..3ef580699b0deaeac0299463b3c4ec5a2b6f965c --- /dev/null +++ b/src/PotageBundle/Controller/DefaultController.php @@ -0,0 +1,13 @@ +render('@Potage/Default/index.html.twig'); + } +} diff --git a/src/PotageBundle/PotageBundle.php b/src/PotageBundle/PotageBundle.php new file mode 100644 index 0000000000000000000000000000000000000000..992d7fb6693bbc13fb3d771bc275ddc5080c6a8b --- /dev/null +++ b/src/PotageBundle/PotageBundle.php @@ -0,0 +1,9 @@ +