diff --git a/Resources/config/services.xml b/Resources/config/services.xml
index 1cfc84c..d9cc026 100644
--- a/Resources/config/services.xml
+++ b/Resources/config/services.xml
@@ -18,6 +18,7 @@
+
%pumukit.locales%
@@ -26,6 +27,7 @@
%pumukit.locales%
+
%pumukit_external_api.allowed_removed_tag%
@@ -34,6 +36,7 @@
%pumukit.locales%
+
diff --git a/Services/APICommonService.php b/Services/APICommonService.php
index 37b0d79..0d5c08d 100644
--- a/Services/APICommonService.php
+++ b/Services/APICommonService.php
@@ -15,8 +15,8 @@ class APICommonService
protected $documentManager;
/** @var FactoryService */
protected $factoryService;
- private $multimediaObjectEventDispatcherService;
protected $pumukitLocales;
+ private $multimediaObjectEventDispatcherService;
public function __construct(
DocumentManager $documentManager,
diff --git a/Services/APIDeleteService.php b/Services/APIDeleteService.php
index bf205a1..ff3e282 100644
--- a/Services/APIDeleteService.php
+++ b/Services/APIDeleteService.php
@@ -6,6 +6,7 @@
use Pumukit\SchemaBundle\Document\MultimediaObject;
use Pumukit\SchemaBundle\Document\Tag;
use Pumukit\SchemaBundle\Services\FactoryService;
+use Pumukit\SchemaBundle\Services\MultimediaObjectEventDispatcherService;
use Pumukit\SchemaBundle\Services\TagService;
use Symfony\Component\HttpFoundation\Response;
@@ -20,9 +21,10 @@ public function __construct(
FactoryService $factoryService,
array $pumukitLocales,
TagService $tagService,
+ MultimediaObjectEventDispatcherService $multimediaObjectEventDispatcherService,
string $allowedTagToDelete
) {
- parent::__construct($documentManager, $factoryService, $pumukitLocales);
+ parent::__construct($documentManager, $factoryService, $multimediaObjectEventDispatcherService, $pumukitLocales);
$this->documentManager = $documentManager;
$this->tagService = $tagService;
$this->allowedTagToDelete = $allowedTagToDelete;
diff --git a/Services/APISeriesService.php b/Services/APISeriesService.php
index 7703714..0732cb0 100644
--- a/Services/APISeriesService.php
+++ b/Services/APISeriesService.php
@@ -5,6 +5,7 @@
use Doctrine\ODM\MongoDB\DocumentManager;
use Pumukit\SchemaBundle\Document\Series;
use Pumukit\SchemaBundle\Services\FactoryService;
+use Pumukit\SchemaBundle\Services\MultimediaObjectEventDispatcherService;
use Pumukit\SchemaBundle\Services\TagService;
use Symfony\Component\HttpFoundation\Response;
@@ -17,9 +18,10 @@ public function __construct(
DocumentManager $documentManager,
FactoryService $factoryService,
array $pumukitLocales,
- TagService $tagService
+ TagService $tagService,
+ MultimediaObjectEventDispatcherService $multimediaObjectEventDispatcherService
) {
- parent::__construct($documentManager, $factoryService, $pumukitLocales);
+ parent::__construct($documentManager, $factoryService, $multimediaObjectEventDispatcherService, $pumukitLocales);
$this->documentManager = $documentManager;
$this->tagService = $tagService;
}
diff --git a/Services/APIService.php b/Services/APIService.php
index 7378d52..87f9073 100644
--- a/Services/APIService.php
+++ b/Services/APIService.php
@@ -12,6 +12,7 @@
use Pumukit\SchemaBundle\Document\User;
use Pumukit\SchemaBundle\Services\FactoryService;
use Pumukit\SchemaBundle\Services\MaterialService;
+use Pumukit\SchemaBundle\Services\MultimediaObjectEventDispatcherService;
use Pumukit\SchemaBundle\Services\PersonService;
use Symfony\Component\HttpFoundation\Response;
@@ -34,9 +35,10 @@ public function __construct(
JobService $jobService,
PersonService $personService,
ImportMappingDataService $importMappingDataService,
+ MultimediaObjectEventDispatcherService $multimediaObjectEventDispatcherService,
array $pumukitLocales
) {
- parent::__construct($documentManager, $factoryService, $pumukitLocales);
+ parent::__construct($documentManager, $factoryService, $multimediaObjectEventDispatcherService, $pumukitLocales);
$this->documentManager = $documentManager;
$this->factoryService = $factoryService;
$this->materialService = $materialService;