This commit is contained in:
PaulCombal
2019-03-01 13:12:17 +01:00
parent d8e915d759
commit 3b9c194e51
5 changed files with 28 additions and 29 deletions

View File

@@ -10,9 +10,8 @@ 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.notifications_bundle.foo')->foo();
die('hello');
$r = $this->get('bluesquare.notifications_bundle.notifssrv')->foo();
die($r);
}
}