Skip to content

Commit

Permalink
Update: Symfony 5 & PHP 8 support
Browse files Browse the repository at this point in the history
  • Loading branch information
BeBlood committed Oct 22, 2021
1 parent fd57cf9 commit 6f5b34c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions EventListener/ExceptionListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use League\OAuth2\Client\Provider\Exception\IdentityProviderException;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent;
use Symfony\Component\HttpKernel\Event\ExceptionEvent;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;

class ExceptionListener
Expand All @@ -19,7 +19,7 @@ public function __construct(UrlGeneratorInterface $urlGenerator)
$this->urlGenerator = $urlGenerator;
}

public function onKernelException(GetResponseForExceptionEvent $event)
public function onKernelException(ExceptionEvent $event)
{
$exception = $event->getThrowable();

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
],
"require": {
"php": "^7.1",
"php": "^7.1 || ^8.0",
"symfony/dependency-injection": ">=4.1.12",
"symfony/framework-bundle": ">=4.1.12",
"symfony/routing": ">=3.0",
Expand Down

0 comments on commit 6f5b34c

Please sign in to comment.