You've already forked symfony-notifications
rename to notifications
This commit is contained in:
18
NotificationsBundle/Controller/MainController.php
Normal file
18
NotificationsBundle/Controller/MainController.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace Bluesquare\NotificationsBundle\Controller;
|
||||
|
||||
use Bluesquare\NotificationsBundle\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.notifications_bundle.foo')->foo();
|
||||
die('hello');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user