Skip to content

Commit

Permalink
Remove old constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
mpdude committed Sep 24, 2024
1 parent 6756cda commit a5977de
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@

class QuerySubscriber implements EventSubscriberInterface
{
public function __construct(private readonly ArgumentAccessInterface $argumentAccess)
{
}

public function items(ItemsEvent $event): void
{
if (!$event->target instanceof Query) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function before(BeforeEvent $event): void
/** @var \Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher */
$dispatcher = $event->getEventDispatcher();
// hook all standard filtration subscribers
$dispatcher->addSubscriber(new Doctrine\ORM\QuerySubscriber($event->getArgumentAccess()));
$dispatcher->addSubscriber(new Doctrine\ORM\QuerySubscriber());
$dispatcher->addSubscriber(new PropelQuerySubscriber());

$this->isLoaded = true;
Expand Down

0 comments on commit a5977de

Please sign in to comment.