Skip to content

Commit

Permalink
Remove Subscriber interface
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCadien committed Jul 18, 2024
1 parent f8dde39 commit 54b9fd4
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions GoneSubscriber/GoneEntitySubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@

namespace Sulu\Bundle\RedirectBundle\GoneSubscriber;

use Doctrine\Common\EventSubscriber;
use Doctrine\ORM\Event\LifecycleEventArgs;
use Doctrine\ORM\Events;
use Sulu\Bundle\RedirectBundle\Entity\RedirectRoute;
use Sulu\Bundle\RedirectBundle\Exception\RedirectRouteNotUniqueException;
use Sulu\Bundle\RedirectBundle\Manager\RedirectRouteManagerInterface;
Expand All @@ -26,7 +24,7 @@
*
* @internal this is a internal listener which should not be used directly
*/
class GoneEntitySubscriber implements EventSubscriber, ContainerAwareInterface
class GoneEntitySubscriber implements ContainerAwareInterface
{
use ContainerAwareTrait;

Expand All @@ -41,13 +39,6 @@ public function __construct(
$this->redirectRouteManager = $redirectRouteManager;
}

public function getSubscribedEvents()
{
return [
Events::preRemove,
];
}

public function preRemove(LifecycleEventArgs $event): void
{
$route = $event->getObject();
Expand Down

0 comments on commit 54b9fd4

Please sign in to comment.