Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions Classes/Form/Element/ShowDeleteFiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@

class ShowDeleteFiles extends AbstractFormElement
{
protected FileRepository $fileRepository;

protected LanguageService $languageService;

/**
* Container objects give $nodeFactory down to other containers.
*
* @param FileRepository $fileRepository
* @param LanguageService $languageService
*/
public function __construct(
protected readonly FileRepository $fileRepository,
protected readonly LanguageService $languageService
) {
public function __construct() {
$this->fileRepository = GeneralUtility::makeInstance(FileRepository::class);
$this->languageService = $GLOBALS['LANG'];
}

/**
Expand Down
6 changes: 4 additions & 2 deletions Classes/Form/Element/ShowMissingFiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,16 @@

class ShowMissingFiles extends AbstractFormElement
{
protected LanguageService $languageService;

/**
* Container objects give $nodeFactory down to other containers.
*
* @param LanguageService|null $languageService
* @throws \InvalidArgumentException
*/
public function __construct(protected readonly LanguageService $languageService)
public function __construct()
{
$this->languageService = $GLOBALS['LANG'];
}

/**
Expand Down