Skip to content

Commit

Permalink
Provide compatibility with Symfony 5.x (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpdude committed Apr 8, 2022
1 parent 74dc6f2 commit bc7b1aa
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Integration/Filter/ControllerAnnotations.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use Doctrine\Common\Annotations\Reader;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Event\FilterControllerEvent;
use Symfony\Component\HttpKernel\Event\ControllerEvent;
use Webfactory\Bundle\LegacyIntegrationBundle\Integration\Filter as FilterInterface;

class ControllerAnnotations implements FilterInterface
Expand All @@ -25,7 +25,7 @@ public function __construct(Reader $reader, ContainerInterface $container)
$this->container = $container;
}

public function filter(FilterControllerEvent $event, Response $response)
public function filter(ControllerEvent $event, Response $response)
{
if (!\is_array($controller = $event->getController())) {
return;
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ The `LegacyApplicationDispatchingEventListener` can take a set of _Filters_ whic
must implement the Webfactory\Bundle\LegacyIntegrationBundle\Integration\Filter interface.

Once the legacy application has been executed, all registered filters are passed
the `FilterControllerEvent` which triggered the event listener as well as the
the `ControllerEvent` which triggered the event listener as well as the
`Response` object that was created for the legacy application.

The primary use case for this is to be able to examine the response and choose
Expand Down
2 changes: 1 addition & 1 deletion Twig/Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function getFunctions()
];
}

public function getGlobals()
public function getGlobals(): array
{
return [
'legacyApplication' => $this,
Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
"doctrine/annotations": "~1.0",
"psr/container": "^1.0",
"psr/log": "^1.0",
"symfony/config": "^4.3",
"symfony/dependency-injection": "^4.2",
"symfony/framework-bundle": "3.4.*|^4.0",
"symfony/http-foundation": "3.4.*|^4.0",
"symfony/http-kernel": "^4.3",
"symfony/config": "^4.3|^5.0",
"symfony/dependency-injection": "^4.3|^5.0",
"symfony/framework-bundle": "3.4.*|^4.0|^5.0",
"symfony/http-foundation": "^4.0|^5.0",
"symfony/http-kernel": "^4.3|^5.0",
"symfony/service-contracts": "^1.0|^2.0",
"twig/twig": "^1.34|^2.0",
"twig/twig": "^1.34|^2.0|^3.0",
"webfactory/dom": "~1.0, >= 1.0.15"
}

Expand Down

0 comments on commit bc7b1aa

Please sign in to comment.