summary | 
shortlog | 
log | 
commit | commitdiff | 
tree
raw | 
patch | 
inline | side by side (from parent 1: 
752e486)
 
Add Response return type
Cleanup
+<?php declare(strict_types=1);
+
+/*
+ * This file is part of the Rapsys AirBundle package.
+ *
+ * (c) Raphaël Gertz <symfony@rapsys.eu>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
 
 namespace Rapsys\AirBundle\Handler;
 
 use Symfony\Component\HttpFoundation\Request;
 
 namespace Rapsys\AirBundle\Handler;
 
 use Symfony\Component\HttpFoundation\Request;
+use Symfony\Component\HttpFoundation\Response;
 use Symfony\Component\Security\Core\Exception\AccessDeniedException;
 use Symfony\Component\Security\Http\Authorization\AccessDeniedHandlerInterface;
 
 use Symfony\Component\Security\Core\Exception\AccessDeniedException;
 use Symfony\Component\Security\Http\Authorization\AccessDeniedHandlerInterface;
 
-       public function handle(Request $request, AccessDeniedException $exception) {
+       public function handle(Request $request, AccessDeniedException $exception): Response {
                //Set title
                $this->context['title'] = $this->translator->trans('Access denied');
 
                //Set title
                $this->context['title'] = $this->translator->trans('Access denied');