From d28dcd1503cc82184f9e8fed3597b52d31307c99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dalibor=20Karlovi=C4=87?= Date: Thu, 17 Feb 2022 11:58:14 +0100 Subject: [PATCH] fix: misnamed Symfony services --- src/ProcessManagerBundle/Controller/ProcessController.php | 2 +- src/ProcessManagerBundle/Resources/config/services.yml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ProcessManagerBundle/Controller/ProcessController.php b/src/ProcessManagerBundle/Controller/ProcessController.php index 5c0fd15..1dd6332 100644 --- a/src/ProcessManagerBundle/Controller/ProcessController.php +++ b/src/ProcessManagerBundle/Controller/ProcessController.php @@ -114,7 +114,7 @@ public function clearAction(): JsonResponse return $this->json(['success' => true]); } - protected function getLog(ProcessInterface $process): JsonResponse + protected function getLog(ProcessInterface $process): string { $registry = $this->get('process_manager.registry.process_handler_factories'); $handler = $registry->has($process->getType()) ? $registry->get($process->getType()) : $this->get( diff --git a/src/ProcessManagerBundle/Resources/config/services.yml b/src/ProcessManagerBundle/Resources/config/services.yml index 669b9b3..3880ffb 100644 --- a/src/ProcessManagerBundle/Resources/config/services.yml +++ b/src/ProcessManagerBundle/Resources/config/services.yml @@ -81,3 +81,8 @@ services: ProcessManagerBundle\Process\CompositeProcessStartupFormResolver: arguments: - '@process_manager.registry.startup_form_resolver' + + # service IDs used by the codebase directly + process_manager.startup_resolver: '@ProcessManagerBundle\Process\CompositeProcessStartupFormResolver' + process_manager.default_report: '@ProcessManagerBundle\Report\DefaultReport' + process_manager.default_handler_factory: '@ProcessManagerBundle\Logger\DefaultHandlerFactory'