diff --git a/api/TaskOperation/Contao/CreateContaoOperation.php b/api/TaskOperation/Contao/CreateContaoOperation.php index bf890c4e..18ba6086 100644 --- a/api/TaskOperation/Contao/CreateContaoOperation.php +++ b/api/TaskOperation/Contao/CreateContaoOperation.php @@ -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 diff --git a/src/components/setup/CreateProject.vue b/src/components/setup/CreateProject.vue index 16f145a2..ced023e5 100644 --- a/src/components/setup/CreateProject.vue +++ b/src/components/setup/CreateProject.vue @@ -234,7 +234,7 @@ export default { processing: false, isWeb: true, - version: '5.3', + version: '5.4', demo: false, view: 'require', @@ -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 }), }); @@ -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', }),