Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

fix: get app data service pluginManager so same instance used by form… #78

Merged
merged 1 commit into from
Feb 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions module/Olcs/src/Listener/RouteParam/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Olcs\Listener\RouteParam;

use Interop\Container\ContainerInterface;
use Common\RefData;
use Laminas\EventManager\EventInterface;
use Olcs\Event\RouteParam;
Expand All @@ -13,6 +12,8 @@
use Laminas\ServiceManager\Factory\FactoryInterface;
use Common\View\Helper\PluginManagerAwareTrait as ViewHelperManagerAwareTrait;
use Common\Exception\ResourceNotFoundException;
use Common\Service\Data\Application as ApplicationDataService;
use Psr\Container\ContainerInterface;

class Application implements ListenerAggregateInterface, FactoryInterface
{
Expand Down Expand Up @@ -395,7 +396,7 @@ public function __invoke(ContainerInterface $container, $requestedName, array $o
$this->setNavigationService($container->get('navigation'));
$this->setSidebarNavigationService($container->get('right-sidebar'));
$this->setMarkerService($container->get(\Olcs\Service\Marker\MarkerService::class));
$this->setApplicationService($container->get(\Common\Service\Data\Application::class));
$this->setApplicationService($container->get('DataServiceManager')->get(ApplicationDataService::class));
return $this;
}
}
Loading