-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support site sets for typo3 v13
- Loading branch information
Showing
7 changed files
with
60 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,35 @@ | ||
#!/bin/bash | ||
|
||
## Description: [ExtDev] Exec TYPO3 command for all available TYPO3 integration instances. | ||
## Description: Exec TYPO3 command for all available TYPO3 integration instances or a selected TYPO3 instance. | ||
## Usage: typo3 | ||
## Example: "ddev typo3 cache:flush" or "ddev typo3 database:schemaupdate" | ||
## Example: "ddev typo3 cache:flush" or "ddev typo3 database:schemaupdate" or "ddev typo3 11 cache:flush" | ||
|
||
. .ddev/commands/web/.utils.sh | ||
|
||
command=$1 | ||
|
||
mapfile -t versions < <(get_supported_typo3_versions) | ||
for version in "${versions[@]}"; do | ||
TYPO3_PATH=".test/${version}/vendor/bin/typo3" | ||
if [ -f "$TYPO3_PATH" ]; then | ||
message magenta "[TYPO3 v${version}] ${command}" | ||
/usr/bin/php $TYPO3_PATH $command | ||
else | ||
message red "TYPO3 binary not found for version ${version}" | ||
fi | ||
done | ||
|
||
if [[ "$command" =~ ^[0-9]+$ ]] && [[ " ${versions[@]} " =~ " ${command} " ]]; then | ||
version=$command | ||
command=$2 | ||
TYPO3_PATH=".test/${version}/vendor/bin/typo3" | ||
if [ -f "$TYPO3_PATH" ]; then | ||
message magenta "[TYPO3 v${version}] ${command}" | ||
/usr/bin/php $TYPO3_PATH $command | ||
else | ||
message red "TYPO3 binary not found for version ${version}" | ||
fi | ||
else | ||
for version in "${versions[@]}"; do | ||
TYPO3_PATH=".test/${version}/vendor/bin/typo3" | ||
if [ -f "$TYPO3_PATH" ]; then | ||
message magenta "[TYPO3 v${version}] ${command}" | ||
/usr/bin/php $TYPO3_PATH $command | ||
else | ||
message red "TYPO3 binary not found for version ${version}" | ||
fi | ||
done | ||
fi | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
name: xima/xima-typo3-frontend-edit | ||
label: Frontend Edit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import 'EXT:xima_typo3_frontend_edit/Configuration/TypoScript/constants.typoscript' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import 'EXT:xima_typo3_frontend_edit/Configuration/TypoScript/setup.typoscript' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters