From f380686ece16582fe1f65889eef73361a33c247d Mon Sep 17 00:00:00 2001 From: tienvx Date: Thu, 27 Apr 2023 19:17:59 +0700 Subject: [PATCH] Fix trait not found --- src/EventListener/MeListener.php | 2 +- src/Util/ClassInfoTrait.php | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 src/Util/ClassInfoTrait.php diff --git a/src/EventListener/MeListener.php b/src/EventListener/MeListener.php index cbd939a..ba5bcad 100644 --- a/src/EventListener/MeListener.php +++ b/src/EventListener/MeListener.php @@ -5,7 +5,6 @@ namespace Webstack\ApiPlatformExtensionsBundle\EventListener; use ApiPlatform\Api\FormatMatcher; -use ApiPlatform\Util\ClassInfoTrait; use Doctrine\ORM\EntityManagerInterface; use Doctrine\ORM\NonUniqueResultException; use Doctrine\ORM\NoResultException; @@ -19,6 +18,7 @@ use Symfony\Component\HttpKernel\Exception\NotAcceptableHttpException; use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; use Symfony\Component\Security\Core\User\UserInterface; +use Webstack\ApiPlatformExtensionsBundle\Util\ClassInfoTrait; use Webstack\ApiPlatformExtensionsBundle\Util\MimeType\MimeTypeFlattener; final class MeListener diff --git a/src/Util/ClassInfoTrait.php b/src/Util/ClassInfoTrait.php new file mode 100644 index 0000000..0c3049a --- /dev/null +++ b/src/Util/ClassInfoTrait.php @@ -0,0 +1,20 @@ +