From e8cd93a3ac24e555e7d23ac3edb897d11f97698a Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Mon, 25 Apr 2022 16:36:25 +0200 Subject: [PATCH] change method name --- src/EventSubscriber/Blog/CategoryEventSubscriber.php | 4 ++-- src/EventSubscriber/Blog/CommentEventSubscriber.php | 4 ++-- src/EventSubscriber/Blog/PostEventSubscriber.php | 8 ++++---- src/EventSubscriber/Blog/PostFollowEventSubscriber.php | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/EventSubscriber/Blog/CategoryEventSubscriber.php b/src/EventSubscriber/Blog/CategoryEventSubscriber.php index 7a0ac45..c8ba42e 100644 --- a/src/EventSubscriber/Blog/CategoryEventSubscriber.php +++ b/src/EventSubscriber/Blog/CategoryEventSubscriber.php @@ -22,14 +22,14 @@ class CategoryEventSubscriber extends EntityManagerEventSubscriber $this->slugify = $slugify; } - public function support(EntityInterface $entity) + public function supports(EntityInterface $entity) { return $entity instanceof Category; } public function onPreUpdate(EntityManagerEvent $event) { - if (!$this->support($event->getEntity())) { + if (!$this->supports($event->getEntity())) { return; } diff --git a/src/EventSubscriber/Blog/CommentEventSubscriber.php b/src/EventSubscriber/Blog/CommentEventSubscriber.php index 22fd99b..b6f311b 100644 --- a/src/EventSubscriber/Blog/CommentEventSubscriber.php +++ b/src/EventSubscriber/Blog/CommentEventSubscriber.php @@ -39,14 +39,14 @@ class CommentEventSubscriber extends EntityManagerEventSubscriber $this->siteRequest = $siteRequest; } - public function support(EntityInterface $entity) + public function supports(EntityInterface $entity) { return $entity instanceof Comment; } public function onCreate(EntityManagerEvent $event) { - if (!$this->support($event->getEntity())) { + if (!$this->supports($event->getEntity())) { return; } diff --git a/src/EventSubscriber/Blog/PostEventSubscriber.php b/src/EventSubscriber/Blog/PostEventSubscriber.php index c284b1f..324260d 100644 --- a/src/EventSubscriber/Blog/PostEventSubscriber.php +++ b/src/EventSubscriber/Blog/PostEventSubscriber.php @@ -29,14 +29,14 @@ class PostEventSubscriber extends EntityManagerEventSubscriber $this->slugify = $slugify; } - public function support(EntityInterface $entity) + public function supports(EntityInterface $entity) { return $entity instanceof Post; } public function onUpdate(EntityManagerEvent $event) { - if (!$this->support($event->getEntity())) { + if (!$this->supports($event->getEntity())) { return; } @@ -45,7 +45,7 @@ class PostEventSubscriber extends EntityManagerEventSubscriber public function onDelete(EntityManagerEvent $event) { - if (!$this->support($event->getEntity())) { + if (!$this->supports($event->getEntity())) { return; } @@ -54,7 +54,7 @@ class PostEventSubscriber extends EntityManagerEventSubscriber public function onPreUpdate(EntityManagerEvent $event) { - if (!$this->support($event->getEntity())) { + if (!$this->supports($event->getEntity())) { return; } diff --git a/src/EventSubscriber/Blog/PostFollowEventSubscriber.php b/src/EventSubscriber/Blog/PostFollowEventSubscriber.php index a56549e..fa3f493 100644 --- a/src/EventSubscriber/Blog/PostFollowEventSubscriber.php +++ b/src/EventSubscriber/Blog/PostFollowEventSubscriber.php @@ -35,14 +35,14 @@ class PostFollowEventSubscriber extends EntityManagerEventSubscriber $this->siteRequest = $siteRequest; } - public function support(EntityInterface $entity) + public function supports(EntityInterface $entity) { return $entity instanceof PostFollow; } public function onCreate(EntityManagerEvent $event) { - if (!$this->support($event->getEntity())) { + if (!$this->supports($event->getEntity())) { return; }