@@ -8,7 +8,6 @@ |
||
| 8 | 8 | use Psr\Log\LoggerInterface; |
| 9 | 9 | use Symfony\Component\EventDispatcher\EventSubscriberInterface; |
| 10 | 10 | use Symfony\Component\HttpFoundation\Response; |
| 11 | -use Symfony\Component\Security\Core\Authentication\Token\AnonymousToken; |
|
| 12 | 11 | use Symfony\Component\Security\Core\AuthenticationEvents; |
| 13 | 12 | use Symfony\Component\Security\Core\Event\AuthenticationEvent; |
| 14 | 13 | use Symfony\Component\Security\Core\Event\AuthenticationFailureEvent; |
@@ -235,7 +235,7 @@ |
||
| 235 | 235 | /** |
| 236 | 236 | * @param array $methods methods to mock |
| 237 | 237 | * |
| 238 | - * @return StrategyInterface|\PHPUnit_Framework_MockObject_MockObject |
|
| 238 | + * @return \PHPUnit_Framework_MockObject_MockObject |
|
| 239 | 239 | */ |
| 240 | 240 | private function getStrategyMock(array $methods = array('apply')) |
| 241 | 241 | { |
@@ -124,7 +124,7 @@ |
||
| 124 | 124 | * @param Request $request original request |
| 125 | 125 | * @param AuthenticationException $exception exception from auth attempt |
| 126 | 126 | * |
| 127 | - * @return Response|null |
|
| 127 | + * @return Response |
|
| 128 | 128 | */ |
| 129 | 129 | public function onAuthenticationFailure(Request $request, AuthenticationException $exception) |
| 130 | 130 | { |
@@ -10,7 +10,6 @@ |
||
| 10 | 10 | use Graviton\RestBundle\HttpFoundation\LinkHeaderItem; |
| 11 | 11 | use Graviton\RestBundle\Service\RestUtilsInterface; |
| 12 | 12 | use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface; |
| 13 | -use Symfony\Component\HttpFoundation\Request; |
|
| 14 | 13 | use Symfony\Component\HttpFoundation\Response; |
| 15 | 14 | use Symfony\Component\Routing\Router; |
| 16 | 15 | |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | private $router; |
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | - * @param router $router router |
|
| 28 | + * @param Router $router router |
|
| 29 | 29 | */ |
| 30 | 30 | public function __construct(Router $router) |
| 31 | 31 | { |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | * |
| 41 | 41 | * @param FilterResponseEvent $event response event |
| 42 | 42 | * |
| 43 | - * @return void |
|
| 43 | + * @return null|boolean |
|
| 44 | 44 | */ |
| 45 | 45 | public function onKernelResponse(FilterResponseEvent $event) |
| 46 | 46 | { |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | /** |
| 19 | 19 | * Return an array of supported classes. This will be called by supportsClass |
| 20 | 20 | * |
| 21 | - * @return array an array of supported classes, i.e. array('Acme\DemoBundle\Model\Product') |
|
| 21 | + * @return string[] an array of supported classes, i.e. array('Acme\DemoBundle\Model\Product') |
|
| 22 | 22 | */ |
| 23 | 23 | protected function getSupportedClasses() |
| 24 | 24 | { |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | /** |
| 32 | 32 | * Return an array of supported attributes. This will be called by supportsAttribute |
| 33 | 33 | * |
| 34 | - * @return array an array of supported attributes, i.e. array('CREATE', 'READ') |
|
| 34 | + * @return string[] an array of supported attributes, i.e. array('CREATE', 'READ') |
|
| 35 | 35 | */ |
| 36 | 36 | protected function getSupportedAttributes() |
| 37 | 37 | { |
@@ -713,7 +713,7 @@ |
||
| 713 | 713 | /** |
| 714 | 714 | * Security needs to be enabled to get Object. |
| 715 | 715 | * |
| 716 | - * @return SecurityUser |
|
| 716 | + * @return UserInterface |
|
| 717 | 717 | * @throws PreconditionRequiredHttpException |
| 718 | 718 | */ |
| 719 | 719 | public function getSecurityUser() |
@@ -6,7 +6,6 @@ |
||
| 6 | 6 | namespace Graviton\SecurityBundle\Authentication\Strategies; |
| 7 | 7 | |
| 8 | 8 | use Graviton\TestBundle\Test\WebTestCase; |
| 9 | -use Symfony\Component\HttpFoundation\RequestStack; |
|
| 10 | 9 | |
| 11 | 10 | /** |
| 12 | 11 | * Class HeaderFieldStrategyTest |
@@ -6,7 +6,6 @@ |
||
| 6 | 6 | namespace Graviton\SecurityBundle\Authentication\Strategies; |
| 7 | 7 | |
| 8 | 8 | use Graviton\TestBundle\Test\WebTestCase; |
| 9 | -use Symfony\Component\HttpFoundation\RequestStack; |
|
| 10 | 9 | |
| 11 | 10 | /** |
| 12 | 11 | * Class HeaderFieldStrategyTest |