/** * Create service * * @param ServiceLocatorInterface $serviceLocator * @return ProcessManagerController */ public function createService(ServiceLocatorInterface $serviceLocator) { $con = new ProcessManagerController(); $con->setScriptLocation(ScriptLocation::fromPath(Definition::getScriptsDir())); $con->setLocationTranslator($serviceLocator->getServiceLocator()->get('prooph.link.app.location_translator')); $con->setWorkflowFinder($serviceLocator->getServiceLocator()->get(\Prooph\Link\ProcessManager\Projection\Workflow\WorkflowFinder::class)); return $con; }
/** * Create service * * @param ServiceLocatorInterface $serviceLocator * @return mixed */ public function createService(ServiceLocatorInterface $serviceLocator) { return new Log($serviceLocator->getServiceLocator()->get(ProcessLogFinder::class), $serviceLocator->getServiceLocator()->get('prooph.link.pm.process_stream_reader'), $serviceLocator->getServiceLocator()->get('processing_config'), ScriptLocation::fromPath(Definition::getScriptsDir())); }
/** * Create service * * @param ServiceLocatorInterface $serviceLocator * @return mixed */ public function createService(ServiceLocatorInterface $serviceLocator) { return new ProcessViewController($serviceLocator->getServiceLocator()->get('prooph.link.monitor.process_logger'), $serviceLocator->getServiceLocator()->get('prooph.link.monitor.process_stream_reader'), ScriptLocation::fromPath(Definition::getScriptsDir()), $serviceLocator->getServiceLocator()->get('prooph.link.app.location_translator')); }