Skip to content

Commit

Permalink
Merge pull request #10 from ohader/main
Browse files Browse the repository at this point in the history
  • Loading branch information
helhum authored May 22, 2023
2 parents 099492f + 9f110e6 commit 0f5eb98
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 3 additions & 1 deletion src/Composer/InstallerScripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit 0f5eb98

Please sign in to comment.