Skip to content

Commit 6620f2b

Browse files
#40 - fix autowiring easyadmin
1 parent c225063 commit 6620f2b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/Controller/Admin/ProcessExecutionCrudController.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ public function __construct(
4646
private readonly ProcessExecutionRepository $processExecutionRepository,
4747
private readonly string $logDirectory,
4848
private readonly TranslatorInterface $translator,
49-
private readonly AdminContext $context,
5049
) {
5150
}
5251

@@ -134,10 +133,10 @@ public function showLogs(): RedirectResponse
134133
return $this->redirect($url);
135134
}
136135

137-
public function downloadLogFile(): Response
136+
public function downloadLogFile(AdminContext $context): Response
138137
{
139138
/** @var ProcessExecution $processExecution */
140-
$processExecution = $this->context->getEntity()->getInstance();
139+
$processExecution = $context->getEntity()->getInstance();
141140
$filepath = $this->getLogFilePath($processExecution);
142141
$basename = basename($filepath);
143142
$content = file_get_contents($filepath);

0 commit comments

Comments
 (0)