Skip to content

Commit

Permalink
fix: get app data service pluginManager so same instance used by form…
Browse files Browse the repository at this point in the history
… selects. (dvsa/olcs-internal#78)
  • Loading branch information
fibble authored Feb 7, 2024
1 parent ada7b14 commit 1950697
Showing 1 changed file with 3 additions and 2 deletions.
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;
}
}

0 comments on commit 1950697

Please sign in to comment.