File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
cookbook/event_dispatcher Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -92,10 +92,12 @@ Creating an Event Listener
92
92
93
93
use Acme\DemoBundle\Controller\TokenAuthenticatedController;
94
94
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
95
+ use Symfony\Component\HttpKernel\Event\FilterControllerEvent;
95
96
96
97
class BeforeListener
97
98
{
98
99
private $tokens;
100
+
99
101
public function __contruct($tokens)
100
102
{
101
103
$this->tokens = $tokens;
@@ -105,7 +107,7 @@ Creating an Event Listener
105
107
{
106
108
$controller = $event->getController();
107
109
108
- /**
110
+ /*
109
111
* $controller passed can be either a class or a Closure. This is not usual in Symfony2 but it may happen.
110
112
* If it is a class, it comes in array format
111
113
*/
You can’t perform that action at this time.
0 commit comments