From 8e1b4e20d44e6001fc740df23084b422ff690ff7 Mon Sep 17 00:00:00 2001 From: Oliver Hader Date: Mon, 22 May 2023 14:12:56 +0200 Subject: [PATCH 1/2] [TASK] Respect TYPO3 v12 file config/system/settings.php In TYPO3 v12 the well known `typo3conf/LocalConfiguration.php` is located at `config/system/settings.php`. This change brings back the automatic invocation of the `extension:setup` command. --- src/Composer/InstallerScripts.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Composer/InstallerScripts.php b/src/Composer/InstallerScripts.php index 3a9f672..55de8cf 100644 --- a/src/Composer/InstallerScripts.php +++ b/src/Composer/InstallerScripts.php @@ -35,7 +35,9 @@ public static function register(Event $event, ScriptDispatcher $scriptDispatcher new ConsoleCommand('install:fixfolderstructure', [], '', null, false), 20 ); - $typo3IsSetUp = getenv('TYPO3_IS_SET_UP') || file_exists(getenv('TYPO3_PATH_ROOT') . '/typo3conf/LocalConfiguration.php'); + $typo3IsSetUp = getenv('TYPO3_IS_SET_UP') + || file_exists(getenv('TYPO3_PATH_ROOT') . '/typo3conf/LocalConfiguration.php') + || file_exists(getenv('TYPO3_PATH_APP') . '/config/system/settings.php'); if ($typo3IsSetUp && $event->isDevMode()) { $scriptDispatcher->addInstallerScript( new ConsoleCommand('extension:setup'), From 9f110e6848ca798d33c899e9070e16bb3845a746 Mon Sep 17 00:00:00 2001 From: Oliver Hader Date: Mon, 22 May 2023 14:18:24 +0200 Subject: [PATCH 2/2] [TASK] Reference config/system/settings.php in README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0ecd40b..75407f5 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,9 @@ The following TYPO3 Console commands are executed: * `install:generatepackagestates` (only TYPO3 Console lower than 7.0) * `install:fixfolderstructure` -And in the case TYPO3 appears to be setup properly (`LocalConfiguration.php` -file is not missing) and running composer in dev mode (without `--no-dev`) these -commands are also executed: +And in the case TYPO3 appears to be setup properly (`typo3conf/LocalConfiguration.php` or +`config/system/settings.php` file is not missing) and running composer in dev mode +(without `--no-dev`) these commands are also executed: * `extension:setup` (or `extension:setupactive` in TYPO3 Console versions lower than 7.0)