Commit 29ef9e1e authored by Mat's avatar Mat

Merge branch 'master' into prod

parents 8fc17b00 f24730e4
A Symfony project created on April 21, 2018, 5:31 pm.
Changelog
=========
......
......@@ -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)) {
......
......@@ -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
......
potage:
resource: "@PotageBundle/Resources/config/routing.yml"
prefix: /
app:
resource: '@AppBundle/Controller/'
type: annotation
......@@ -4,6 +4,7 @@
"type": "project",
"autoload": {
"psr-4": {
"PotageBundle\\": "src/PotageBundle",
"AppBundle\\": "src/AppBundle"
},
"classmap": [
......
<?php
namespace PotageBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class DefaultController extends Controller
{
public function indexAction()
{
return $this->render('@Potage/Default/index.html.twig');
}
}
<?php
namespace PotageBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class PotageBundle extends Bundle
{
}
potage_homepage:
path: /
defaults: { _controller: PotageBundle:Default:index }
services:
# potage.example:
# class: PotageBundle\Example
# arguments: ["@service_id", "plain_value", "%parameter%"]
{% extends 'base.html.twig' %}
{% block body %}
Hello Potage!
{% endblock %}
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