Allow to execute update wizard within web ui (#108)

The wizard will use makeInstance() instead of DI.
The DI worked on CLI, but not web ui.
This approach now also works within web ui.
This commit is contained in:
Daniel Siepmann 2023-02-02 11:41:10 +01:00 committed by GitHub
parent 2bf18536cc
commit 4cb2b9ad80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,10 +35,9 @@ class BackendModuleUserPermission implements UpgradeWizardInterface
*/ */
private $connectionPool; private $connectionPool;
public function __construct( public function __construct()
ConnectionPool $connectionPool {
) { $this->connectionPool = GeneralUtility::makeInstance(ConnectionPool::class);
$this->connectionPool = $connectionPool;
} }
public function getIdentifier(): string public function getIdentifier(): string