Skip to content
Snippets Groups Projects
Commit eb5d1f2b authored by Torben Hansen's avatar Torben Hansen Committed by Oliver Bartsch
Browse files

[TASK] Use constructor property promotion in OpenDocumentController


This change adds constructor property promotion in ext:opendocs
`OpenDocumentController`.

Resolves: #100150
Releases: main
Signed-off-by: default avatarTorben Hansen <derhansen@gmail.com>
Change-Id: Idf60edda6c9231723cfb5d6dc9bddcf64a150fb4
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78104


Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Tested-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
parent d4e939a2
Branches
Tags
No related merge requests found
......@@ -31,15 +31,10 @@ use TYPO3\CMS\Opendocs\Service\OpenDocumentService;
*/
class OpenDocumentController
{
protected OpenDocumentService $documents;
protected OpendocsToolbarItem $toolbarItem;
public function __construct(
OpenDocumentService $documents,
OpendocsToolbarItem $toolbarItem
protected readonly OpenDocumentService $documents,
protected readonly OpendocsToolbarItem $toolbarItem
) {
$this->documents = $documents;
$this->toolbarItem = $toolbarItem;
}
/**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment