22
22
use Symfony \Bundle \FrameworkBundle \Templating \EngineInterface ;
23
23
use Symfony \Component \DependencyInjection \ContainerAwareInterface ;
24
24
use Symfony \Component \DependencyInjection \ContainerInterface ;
25
- use Symfony \Component \EventDispatcher \EventDispatcher ;
25
+ use Symfony \Component \EventDispatcher \EventDispatcherInterface ;
26
26
use Symfony \Component \Form \Form ;
27
27
use Symfony \Component \HttpFoundation \Request ;
28
28
use Symfony \Component \HttpFoundation \RequestStack ;
@@ -101,7 +101,7 @@ class AuthorizeController implements ContainerAwareInterface
101
101
private $ templateEngineType ;
102
102
103
103
/**
104
- * @var EventDispatcher
104
+ * @var EventDispatcherInterface
105
105
*/
106
106
private $ eventDispatcher ;
107
107
@@ -111,17 +111,17 @@ class AuthorizeController implements ContainerAwareInterface
111
111
*
112
112
* @todo This controller could be refactored to do not rely on so many dependencies
113
113
*
114
- * @param RequestStack $requestStack
115
- * @param SessionInterface $session
116
- * @param Form $authorizeForm
117
- * @param AuthorizeFormHandler $authorizeFormHandler
118
- * @param OAuth2 $oAuth2Server
119
- * @param EngineInterface $templating
120
- * @param TokenStorageInterface $tokenStorage
121
- * @param UrlGeneratorInterface $router
122
- * @param ClientManagerInterface $clientManager
123
- * @param EventDispatcher $eventDispatcher
124
- * @param string $templateEngineType
114
+ * @param RequestStack $requestStack
115
+ * @param SessionInterface $session
116
+ * @param Form $authorizeForm
117
+ * @param AuthorizeFormHandler $authorizeFormHandler
118
+ * @param OAuth2 $oAuth2Server
119
+ * @param EngineInterface $templating
120
+ * @param TokenStorageInterface $tokenStorage
121
+ * @param UrlGeneratorInterface $router
122
+ * @param ClientManagerInterface $clientManager
123
+ * @param EventDispatcherInterface $eventDispatcher
124
+ * @param string $templateEngineType
125
125
*/
126
126
public function __construct (
127
127
RequestStack $ requestStack ,
@@ -133,7 +133,7 @@ public function __construct(
133
133
TokenStorageInterface $ tokenStorage ,
134
134
UrlGeneratorInterface $ router ,
135
135
ClientManagerInterface $ clientManager ,
136
- EventDispatcher $ eventDispatcher ,
136
+ EventDispatcherInterface $ eventDispatcher ,
137
137
$ templateEngineType = 'twig '
138
138
) {
139
139
$ this ->requestStack = $ requestStack ;
0 commit comments