Skip to content

Commit

Permalink
TTK-23609 fix construct of commonService
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurujai committed May 19, 2021
1 parent f663e7a commit 8b0dba9
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
3 changes: 3 additions & 0 deletions Resources/config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<argument type="service" id="pumukitencoder.job"/>
<argument type="service" id="pumukitschema.person"/>
<argument type="service" id="pumukitcore.import_mapping_data"/>
<argument type="service" id="pumukitschema.multimediaobject_dispatcher"/>
<argument>%pumukit.locales%</argument>
</service>

Expand All @@ -26,6 +27,7 @@
<argument type="service" id="pumukitschema.factory"/>
<argument>%pumukit.locales%</argument>
<argument type="service" id="pumukitschema.tag" />
<argument type="service" id="pumukitschema.multimediaobject_dispatcher"/>
<argument>%pumukit_external_api.allowed_removed_tag%</argument>
</service>

Expand All @@ -34,6 +36,7 @@
<argument type="service" id="pumukitschema.factory"/>
<argument>%pumukit.locales%</argument>
<argument type="service" id="pumukitschema.tag" />
<argument type="service" id="pumukitschema.multimediaobject_dispatcher"/>
</service>
</services>
</container>
2 changes: 1 addition & 1 deletion Services/APICommonService.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ class APICommonService
protected $documentManager;
/** @var FactoryService */
protected $factoryService;
private $multimediaObjectEventDispatcherService;
protected $pumukitLocales;
private $multimediaObjectEventDispatcherService;

public function __construct(
DocumentManager $documentManager,
Expand Down
4 changes: 3 additions & 1 deletion Services/APIDeleteService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
Expand Down
6 changes: 4 additions & 2 deletions Services/APISeriesService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
}
Expand Down
4 changes: 3 additions & 1 deletion Services/APIService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
Expand Down

0 comments on commit 8b0dba9

Please sign in to comment.