Skip to content

Commit

Permalink
Enable installation of Contao 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Aug 12, 2024
1 parent 74a8c23 commit 95840e2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion api/TaskOperation/Contao/CreateContaoOperation.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class CreateContaoOperation extends AbstractInlineOperation
/**
* @var array
*/
private static $supportedVersions = ['4.9', '4.13', '5.3'];
private static $supportedVersions = ['4.9', '4.13', '5.3', '5.4'];

/**
* @var Environment
Expand Down
16 changes: 12 additions & 4 deletions src/components/setup/CreateProject.vue
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export default {
processing: false,
isWeb: true,
version: '5.3',
version: '5.4',
demo: false,
view: 'require',
Expand All @@ -258,11 +258,19 @@ export default {
versions () {
const versions = [];
versions.push({
value: '5.4',
label: `Contao 5.4 (${ this.$t('ui.setup.create-project.latestTitle') })`,
disabled: this.phpVersionId < 80100,
description: this.$t('ui.setup.create-project.latestQ1', { year: '2025' }),
problem: this.$t('ui.setup.create-project.requiresPHP', { version: '8.1.0', current: this.phpVersion }),
});
versions.push({
value: '5.3',
label: `Contao 5.3 (${ this.$t('ui.setup.create-project.latestTitle') } & ${ this.$t('ui.setup.create-project.ltsTitle') })`,
label: `Contao 5.3 (${ this.$t('ui.setup.create-project.ltsTitle') })`,
disabled: this.phpVersionId < 80100,
description: this.$t('ui.setup.create-project.latestQ1', { year: '2027' }),
description: this.$t('ui.setup.create-project.ltsText', { year: '2027' }),
problem: this.$t('ui.setup.create-project.requiresPHP', { version: '8.1.0', current: this.phpVersion }),
});
Expand All @@ -277,7 +285,7 @@ export default {
if (this.phpVersionId < 70400) {
versions.push({
value: '4.9',
label: `Contao 4.9 (${ this.$t('ui.setup.create-project.ltsTitle') })`,
label: `Contao 4.9`,
disabled: !this.isWeb,
description: this.$t('ui.setup.create-project.pltsText', { year: '2023' }),
problem: this.$t('ui.setup.create-project.requiresDocroot', { folder: 'web', }),
Expand Down

0 comments on commit 95840e2

Please sign in to comment.