Skip to content

Commit

Permalink
fix: misnamed Symfony services
Browse files Browse the repository at this point in the history
  • Loading branch information
dkarlovi committed Feb 17, 2022
1 parent 7ae6106 commit d28dcd1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/ProcessManagerBundle/Controller/ProcessController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
5 changes: 5 additions & 0 deletions src/ProcessManagerBundle/Resources/config/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit d28dcd1

Please sign in to comment.