Commit 2bb2782d authored by Mat's avatar Mat

php bin/console generate:bundle

parent c18d1582
......@@ -17,6 +17,7 @@ class AppKernel extends Kernel
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
new AppBundle\AppBundle(),
new TechnoBundle\TechnoBundle(),
];
if (in_array($this->getEnvironment(), ['dev', 'test'], true)) {
......
......@@ -2,6 +2,7 @@ imports:
- { resource: parameters.yml }
- { resource: security.yml }
- { resource: services.yml }
- { resource: "@TechnoBundle/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
......
techno:
resource: "@TechnoBundle/Resources/config/routing.yml"
prefix: /
app:
resource: '@AppBundle/Controller/'
type: annotation
......@@ -4,7 +4,8 @@
"type": "project",
"autoload": {
"psr-4": {
"AppBundle\\": "src/AppBundle"
"AppBundle\\": "src/AppBundle",
"TechnoBundle\\": "src/TechnoBundle"
},
"classmap": [
"app/AppKernel.php",
......
<?php
namespace TechnoBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class DefaultController extends Controller
{
public function indexAction()
{
return $this->render('TechnoBundle:Default:index.html.twig');
}
}
techno_homepage:
path: /
defaults: { _controller: TechnoBundle:Default:index }
services:
# techno.example:
# class: TechnoBundle\Example
# arguments: ["@service_id", "plain_value", "%parameter%"]
<?php
namespace TechnoBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class TechnoBundle extends Bundle
{
}
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