Skip to content

Commit 08db41d

Browse files
committed
adding WouterJ catches
1 parent 31f3145 commit 08db41d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cookbook/event_dispatcher/before_after_filters.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,12 @@ Creating an Event Listener
9292
9393
use Acme\DemoBundle\Controller\TokenAuthenticatedController;
9494
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
95+
use Symfony\Component\HttpKernel\Event\FilterControllerEvent;
9596
9697
class BeforeListener
9798
{
9899
private $tokens;
100+
99101
public function __contruct($tokens)
100102
{
101103
$this->tokens = $tokens;
@@ -105,7 +107,7 @@ Creating an Event Listener
105107
{
106108
$controller = $event->getController();
107109
108-
/**
110+
/*
109111
* $controller passed can be either a class or a Closure. This is not usual in Symfony2 but it may happen.
110112
* If it is a class, it comes in array format
111113
*/

0 commit comments

Comments
 (0)