Skip to content

Commit

Permalink
Merge pull request #4 from lchrusciel/event-dispatcher
Browse files Browse the repository at this point in the history
[Maintenance] Drop polyfiling logic
  • Loading branch information
NoResponseMate authored Mar 4, 2024
2 parents b0802a9 + 13628d3 commit d55984b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
}
],
"require": {
"php": "^8.0",
"php": "^8.1",

"symfony/event-dispatcher": "^4.4 || ^5.4 || ^6.0",
"symfony/event-dispatcher": "^5.4 || ^6.4 || ^7.0",
"symfony/event-dispatcher-contracts": "^1.1 || ^2.0 || ^3.0"
},
"autoload": {
Expand Down
11 changes: 2 additions & 9 deletions src/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,7 @@
namespace SyliusLabs\Polyfill\Symfony\EventDispatcher;

use Symfony\Contracts\EventDispatcher\Event as ContractEvent;
use Symfony\Component\EventDispatcher\Event as ComponentEvent;

if (class_exists(ComponentEvent::class)) {
class Event extends ComponentEvent
{
}
} else {
class Event extends ContractEvent
{
}
class Event extends ContractEvent
{
}

0 comments on commit d55984b

Please sign in to comment.