|
- <?php
-
- namespace Lc\PietroBundle\Controller;
-
- use Lc\PietroBundle\Container\Dream\DreamContainer;
- use Lc\PietroBundle\Container\IndividualData\IndividualDataContainer;
- use Lc\PietroBundle\Container\ProjectBoost\ProjectBoostContainer;
- use Lc\PietroBundle\Container\ProjectInspiring\ProjectInspiringContainer;
- use Lc\PietroBundle\Container\Revolt\RevoltContainer;
- use Lc\PietroBundle\Container\Subthematic\SubthematicContainer;
- use Lc\PietroBundle\Container\Territory\TerritoryContainer;
- use Lc\PietroBundle\Container\Thematic\ThematicContainer;
- use Lc\PietroBundle\Container\Workshop\EntryContainer;
- use Lc\PietroBundle\Container\Workshop\TypeContainer;
- use Lc\PietroBundle\Container\Workshop\WorkshopContainer;
- use Lc\PietroBundle\Container\Workshop\WorkshopThematicContainer;
-
- trait ControllerTrait
- {
- public static function getSubscribedServices()
- {
- return array_merge(
- parent::getSubscribedServices(),
- [
- DreamContainer::class => DreamContainer::class,
- IndividualDataContainer::class => IndividualDataContainer::class,
- ProjectBoostContainer::class => ProjectBoostContainer::class,
- ProjectInspiringContainer::class => ProjectInspiringContainer::class,
- RevoltContainer::class => RevoltContainer::class,
- SubthematicContainer::class => SubthematicContainer::class,
- TerritoryContainer::class => TerritoryContainer::class,
- ThematicContainer::class => ThematicContainer::class,
- WorkshopContainer::class => WorkshopContainer::class,
- WorkshopThematicContainer::class => WorkshopThematicContainer::class,
- EntryContainer::class => EntryContainer::class,
- TypeContainer::class => TypeContainer::class
- ]
- );
- }
-
- public function getDreamContainer(): DreamContainer
- {
- return $this->get(DreamContainer::class);
- }
-
- public function getIndividualDataContainer(): IndividualDataContainer
- {
- return $this->get(IndividualDataContainer::class);
- }
-
- public function getProjectBoostContainer(): ProjectBoostContainer
- {
- return $this->get(ProjectBoostContainer::class);
- }
-
- public function getProjectInspiringContainer(): ProjectInspiringContainer
- {
- return $this->get(ProjectInspiringContainer::class);
- }
-
- public function getRevoltContainer(): RevoltContainer
- {
- return $this->get(RevoltContainer::class);
- }
-
- public function getSubthematicContainer(): SubthematicContainer
- {
- return $this->get(SubthematicContainer::class);
- }
-
- public function getTerritoryContainer(): TerritoryContainer
- {
- return $this->get(TerritoryContainer::class);
- }
-
- public function getThematicContainer(): ThematicContainer
- {
- return $this->get(ThematicContainer::class);
- }
-
- public function getWorkshopContainer(): WorkshopContainer
- {
- return $this->get(WorkshopContainer::class);
- }
-
- public function getWorkshopThematicContainer(): WorkshopThematicContainer
- {
- return $this->get(WorkshopThematicContainer::class);
- }
-
- public function getEntryContainer(): EntryContainer
- {
- return $this->get(EntryContainer::class);
- }
-
- public function getTypeContainer(): TypeContainer
- {
- return $this->get(TypeContainer::class);
- }
- }
|