Commit 4179b82a authored by Mat's avatar Mat

supprime le AppBundle proposé par défaut ->

suivi par un composer update
parent 26e824aa
......@@ -17,7 +17,6 @@ class AppKernel extends Kernel
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
new PotageBundle\PotageBundle(),
new AppBundle\AppBundle()
];
if (in_array($this->getEnvironment(), ['dev', 'test'], true)) {
......
potage:
resource: "@PotageBundle/Resources/config/routing.yml"
prefix: /potage
app:
resource: '@AppBundle/Controller/'
type: annotation
......@@ -14,22 +14,22 @@ services:
# if you need to do this, you can override this setting on individual services
public: false
# makes classes in src/AppBundle available to be used as services
# makes classes in src/PotageBundle available to be used as services
# this creates a service per class whose id is the fully-qualified class name
AppBundle\:
resource: '../../src/AppBundle/*'
PotageBundle\:
resource: '../../src/PotageBundle/*'
# you can exclude directories or files
# but if a service is unused, it's removed anyway
exclude: '../../src/AppBundle/{Entity,Repository,Tests}'
exclude: '../../src/PotageBundle/{Entity,Repository,Tests}'
# controllers are imported separately to make sure they're public
# and have a tag that allows actions to type-hint services
AppBundle\Controller\:
resource: '../../src/AppBundle/Controller'
PotageBundle\Controller\:
resource: '../../src/PotageBundle/Controller'
public: true
tags: ['controller.service_arguments']
# add more services, or override services that need manual wiring
# AppBundle\Service\ExampleService:
# PotageBundle\Service\ExampleService:
# arguments:
# $someArgument: 'some_value'
......@@ -4,8 +4,7 @@
"type": "project",
"autoload": {
"psr-4": {
"PotageBundle\\": "src/PotageBundle",
"AppBundle\\": "src/AppBundle"
"PotageBundle\\": "src/PotageBundle"
},
"classmap": [
"app/AppKernel.php",
......
<?php
namespace AppBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class AppBundle extends Bundle
{
}
<?php
namespace AppBundle\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
class DefaultController extends Controller
{
/**
* @Route("/", name="homepage")
*/
public function indexAction(Request $request)
{
// replace this example code with whatever you need
return $this->render('default/index.html.twig', [
'base_dir' => realpath($this->getParameter('kernel.project_dir')).DIRECTORY_SEPARATOR,
]);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment