From 5a442d2baeb566a45ecc2f244eb9a880e0b62000 Mon Sep 17 00:00:00 2001 From: Javier Spagnoletti Date: Sat, 24 Jul 2021 12:08:03 -0300 Subject: [PATCH] Make explicit some missing deps --- composer.json | 10 ++++++---- src/EventListener/LogRevisionsListener.php | 3 +-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index db2084d6..6d8dd8c5 100644 --- a/composer.json +++ b/composer.json @@ -11,10 +11,14 @@ "require": { "php": "^7.3 || ^8.0", "doctrine/collections": "^1.6", + "doctrine/common": "^3.1", "doctrine/dbal": "^2.11", "doctrine/event-manager": "^1.1", "doctrine/orm": "^2.9", + "doctrine/persistence": "^2.2", "symfony/config": "^4.4 || ^5.3 || ^6.0", + "symfony/http-kernel": "^4.4 || ^5.3 || ^6.0", + "symfony/security-core": "^4.4 || ^5.3 || ^6.0", "twig/twig": "^2.6 || ^3.0" }, "conflict": { @@ -29,11 +33,9 @@ "matthiasnoback/symfony-dependency-injection-test": "^4.2.1", "symfony/cache": "^4.4 || ^5.3 || ^6.0", "symfony/dependency-injection": "^4.4 || ^5.3 || ^6.0", - "symfony/framework-bundle": "^4.4 || ^5.3 || ^6.0", + "symfony/framework-bundle": "^4.4", "symfony/http-foundation": "^4.4 || ^5.3 || ^6.0", - "symfony/http-kernel": "^4.4 || ^5.3 || ^6.0", - "symfony/phpunit-bridge": "^5.3 || ^6.0", - "symfony/security-core": "^4.4 || ^5.3 || ^6.0" + "symfony/phpunit-bridge": "^5.3 || ^6.0" }, "config": { "sort-packages": true diff --git a/src/EventListener/LogRevisionsListener.php b/src/EventListener/LogRevisionsListener.php index 4d2f12e9..9d697619 100644 --- a/src/EventListener/LogRevisionsListener.php +++ b/src/EventListener/LogRevisionsListener.php @@ -14,7 +14,6 @@ namespace SimpleThings\EntityAudit\EventListener; use Doctrine\Common\EventSubscriber; -use Doctrine\Common\Persistence\Mapping\MappingException; use Doctrine\DBAL\Connection; use Doctrine\DBAL\DBALException; use Doctrine\DBAL\Platforms\AbstractPlatform; @@ -29,6 +28,7 @@ use Doctrine\ORM\Persisters\Entity\BasicEntityPersister; use Doctrine\ORM\Persisters\Entity\EntityPersister; use Doctrine\ORM\UnitOfWork; +use Doctrine\Persistence\Mapping\MappingException; use SimpleThings\EntityAudit\AuditConfiguration; use SimpleThings\EntityAudit\AuditManager; use SimpleThings\EntityAudit\Metadata\MetadataFactory; @@ -100,7 +100,6 @@ public function getSubscribedEvents() } /** - * @throws MappingException * @throws DBALException * @throws MappingException * @throws \Exception