diff --git a/app/AppKernel.php b/app/AppKernel.php index 23a4759..9a1109d 100644 --- a/app/AppKernel.php +++ b/app/AppKernel.php @@ -22,6 +22,7 @@ public function registerBundles() new Symfony\Bundle\MonologBundle\MonologBundle(), new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(), new AppBundle\AppBundle(), + new DemoBundle\DemoBundle(), ); if (in_array($this->getEnvironment(), array('dev', 'test'))) { diff --git a/app/config/api.yml b/app/config/api.yml index 07c0aec..e371cd1 100644 --- a/app/config/api.yml +++ b/app/config/api.yml @@ -3,7 +3,7 @@ sylius_resource: acme.post: driver: doctrine/orm classes: - model: AppBundle\Entity\Post + model: DemoBundle\Entity\Post fos_rest: disable_csrf_role: ROLE_API diff --git a/app/config/routing.yml b/app/config/routing.yml index 4e5b684..47cd227 100644 --- a/app/config/routing.yml +++ b/app/config/routing.yml @@ -1,3 +1,3 @@ acme_demo: - resource: "@AppBundle/Resources/config/routing.yml" + resource: "@DemoBundle/Resources/config/routing.yml" prefix: / diff --git a/src/DemoBundle/DemoBundle.php b/src/DemoBundle/DemoBundle.php new file mode 100644 index 0000000..2436d26 --- /dev/null +++ b/src/DemoBundle/DemoBundle.php @@ -0,0 +1,9 @@ +