Skip to content

Commit ce8b66b

Browse files
[BUGFIX] fix #800, constructor DependencyInjection had a wrong mixture of two options: option 1. would be with declared variables and without visibility in the parameters, 2. is now without declared variables but declaration directly in the parameters, which includes the visibility 'private' and the 'readonly' option
1 parent 62c8064 commit ce8b66b

File tree

1 file changed

+10
-20
lines changed

1 file changed

+10
-20
lines changed

Classes/Controller/BuilderModuleController.php

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -51,26 +51,16 @@ class BuilderModuleController extends ActionController
5151
{
5252

5353
public function __construct(
54-
FileGenerator $fileGenerator,
55-
IconFactory $iconFactory,
56-
PageRenderer $pageRenderer,
57-
ExtensionInstallationStatus $extensionInstallationStatus,
58-
ExtensionSchemaBuilder $extensionSchemaBuilder,
59-
ExtensionService $extensionService,
60-
ModuleTemplateFactory $moduleTemplateFactory,
61-
ExtensionValidator $extensionValidator,
62-
ExtensionRepository $extensionRepository,
63-
)
64-
{
65-
$this->fileGenerator = $fileGenerator;
66-
$this->iconFactory = $iconFactory;
67-
$this->pageRenderer = $pageRenderer;
68-
$this->extensionInstallationStatus = $extensionInstallationStatus;
69-
$this->extensionSchemaBuilder = $extensionSchemaBuilder;
70-
$this->extensionService = $extensionService;
71-
$this->moduleTemplateFactory = $moduleTemplateFactory;
72-
$this->extensionValidator = $extensionValidator;
73-
$this->extensionRepository = $extensionRepository;
54+
private readonly FileGenerator $fileGenerator,
55+
private readonly IconFactory $iconFactory,
56+
private readonly PageRenderer $pageRenderer,
57+
private readonly ExtensionInstallationStatus $extensionInstallationStatus,
58+
private readonly ExtensionSchemaBuilder $extensionSchemaBuilder,
59+
private readonly ExtensionService $extensionService,
60+
private readonly ModuleTemplateFactory $moduleTemplateFactory,
61+
private readonly ExtensionValidator $extensionValidator,
62+
private readonly ExtensionRepository $extensionRepository,
63+
){
7464
}
7565

7666
private ExtensionBuilderConfigurationManager $extensionBuilderConfigurationManager;

0 commit comments

Comments
 (0)