This commit is contained in:
PaulCombal
2019-03-01 12:18:06 +01:00
commit 14ac7fe69a
11 changed files with 282 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
<?php
namespace Bluesquare\TestBundle\Controller;
use Bluesquare\TestBundle\Service\FooService;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
class MainController extends AbstractController
{
public function index(Request $request)
{
die($request->getMethod());
// ON PEUT PAS INJECTER UN SERVICE DU BUNDLE EN QUESTION DANS LES ARGS DONC ON LE récupère ainsi :
$this->get('bluesquare.test_bundle.foo')->foo();
die('hello');
}
}