Skip to content

Commit 2554079

Browse files
Toflarfritzmg
andauthored
Make LTS version a site parameter (#1670)
Co-authored-by: fritzmg <[email protected]>
1 parent fe59b0b commit 2554079

File tree

13 files changed

+22
-23
lines changed

13 files changed

+22
-23
lines changed

docs/dev/framework/security/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ authentication and authorization. The Contao Managed Edition provides its own [f
1010
[user providers][SymfonyUserProvider] and [access control][SymfonyAccessControl] via the `contao/manager-bundle`. If you
1111
do not use the Managed Edition and added Contao to your custom Symfony application, you will have to register Contao's
1212
security settings yourself, as mentioned in the [Getting Started article][ContaoConfiguration]. Contao's Symfony
13-
Security configuration in Contao **{{< current-version >}}** [looks like this][ContaoSecurityYaml] for example.
13+
Security configuration in Contao **{{% siteparam "currentContaoVersion" %}}** [looks like this][ContaoSecurityYaml] for example.
1414

1515
If you want to learn more about Symfony's Security Component use the provided links to read up on. This documentation
1616
will only cover implementation details that are unique to Contao.

docs/dev/getting-started/initial-setup/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ bundles for example (e.g. for Contao Extensions). Head over to the linked articl
2323
to learn more about the Managed Edition.
2424

2525
To install a specific version of the Contao Managed Edition in the current directory (`.`), run the
26-
command as follows (e.g. for `4.9`):
26+
command as follows (e.g. for `{{% siteparam "currentContaoVersion" %}}`):
2727

2828

2929
```bash
30-
composer create-project contao/managed-edition . 4.9
30+
composer create-project contao/managed-edition . {{% siteparam "currentContaoVersion" %}}
3131
```
3232

3333
[1]: symfony-application

docs/dev/getting-started/initial-setup/managed-edition.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ The heart of the `Managed Edition` consists of two main components:
2020
* [The Manager Plugin (contao/manager-plugin)](https://github.com/contao/manager-plugin)
2121

2222
The `Manager Bundle` contains the full application skeleton such as entry points, config files etc. thus giving us full
23-
control on how the application is built during an update. Hence, if you want to install e.g. Contao 4.7, you would require
24-
`contao/manager-bundle` in `4.7.*`.
23+
control on how the application is built during an update. Hence, if you want to install e.g. Contao {{% siteparam "currentContaoVersion" %}}, you would require
24+
`contao/manager-bundle` in `{{% siteparam "currentContaoVersion" %}}.*`.
2525

2626
{{% notice note %}}
2727
To start a new project, don't just require the `contao/manager-bundle` because you'll also need the `post-install` and

docs/manual/guides/local-installation/ddev.de.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ DDEV-Konfiguration anlegen mit:
5050
ddev config --project-type=php --docroot=public --webserver-type=apache-fpm --php-version=8.2
5151
```
5252

53-
Contao 5.3 installieren:
53+
Contao {{% siteparam "currentContaoVersion" %}} installieren:
5454

5555
```shell
56-
ddev composer create-project contao/managed-edition:5.3
56+
ddev composer create-project contao/managed-edition:{{% siteparam "currentContaoVersion" %}}
5757
```
5858

5959
Nach der Installation müssen die Datenbankzugangsdaten in die `.env.local` eingetragen werden. In diesem Zug richten wir auch direkt

docs/manual/guides/local-installation/ddev.en.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ Create the DDEV configuration with:
4848
ddev config --project-type=php --docroot=public --webserver-type=apache-fpm --php-version=8.2
4949
```
5050

51-
Install Contao 5.3:
51+
Install Contao {{% siteparam "currentContaoVersion" %}}:
5252

5353
```shell
54-
ddev composer create-project contao/managed-edition:5.3
54+
ddev composer create-project contao/managed-edition:{{% siteparam "currentContaoVersion" %}}
5555
```
5656

5757
After installation, the database credentials must be entered in the `.env.local`. At the same time, we also set up

docs/manual/guides/local-installation/devilbox.de.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,16 +167,16 @@ Im Anschluss musst du die Devilbox neu starten. Im Devilbox-Hauptverzeichnis lie
167167
`shell.bat`. Damit kannst du dich in den laufenden Devilbox PHP-Container (die `Devilbox-shell`) einklinken. Hier sind
168168
bereits [zahlreiche Tools](https://devilbox.readthedocs.io/en/latest/readings/available-tools.html) vorinstalliert
169169
(unter anderem `Composer`). Nach Aufruf befindest du dich im Container im Verzeichnis `shared/http`. Zur Installation
170-
von z. B. Contao 4.13 in ein Verzeichnis `contao4` musst du lediglich eingeben:
170+
von z. B. Contao {{% siteparam "currentContaoVersion" %}} in ein Verzeichnis `contaocms` musst du lediglich eingeben:
171171

172172
```bash
173-
composer create-project contao/managed-edition contao4 4.13
173+
composer create-project contao/managed-edition contaocms {{% siteparam "currentContaoVersion" %}}
174174
```
175175

176176
Lege dir eine neue Datenbank an:
177177

178178
```bash
179-
mysql -u root -h mysql -p -e 'CREATE DATABASE db_contao4;'
179+
mysql -u root -h mysql -p -e 'CREATE DATABASE db_contaocms;'
180180
```
181181

182182
{{% notice tip %}}

docs/manual/guides/local-installation/devilbox.en.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,17 +158,17 @@ memory_limit = -1
158158
Afterwards you have to restart the Devilbox. The Devilbox main directory contains the files `shell.sh` and` shell.bat`.
159159
So you can plug into the running Devilbox PHP container. Here are already
160160
[numerous tools](https://devilbox.readthedocs.io/en/latest/readings/available-tools.html) preinstalled. Also `composer`.
161-
After calling you are in the directory `shared/http`. To install e.g. Contao 4.13 in a directory `contao4` you just
161+
After calling you are in the directory `shared/http`. To install e.g. Contao {{% siteparam "currentContaoVersion" %}} in a directory `contaocms` you just
162162
have to enter:
163163

164164
```bash
165-
composer create-project contao/managed-edition contao4 4.13
165+
composer create-project contao/managed-edition contaocms {{% siteparam "currentContaoVersion" %}}
166166
```
167167

168168
Create a new database:
169169

170170
```bash
171-
mysql -u root -h mysql -p -e 'CREATE DATABASE db_contao4;'
171+
mysql -u root -h mysql -p -e 'CREATE DATABASE db_contaocms;'
172172
```
173173

174174
{{% notice tip %}}

docs/manual/guides/local-installation/laragon.de.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ Wie bereits erwähnt, kann über das Laragon-Feature »_Neue Website erstellen_
248248

249249
![Projektname eingeben]({{% asset "images/manual/guides/local-installation/de/laragon/19_laragon_websiteproject_2.png" %}}?width=250px&classes=shadow)
250250

251-
+ Es öffnet sich ein Konsolenfenster: Im Hintergrund wird zunächst Contao {{< current-version >}} (inklusive aller erforderlichen Pakete) via Composer installiert und im Anschluss das Skript des Contao Managers heruntergeladen und im Unterordner `public/` als `contao-manager.phar.php` gespeichert.
251+
+ Es öffnet sich ein Konsolenfenster: Im Hintergrund wird zunächst Contao {{% siteparam "currentContaoVersion" %}} (inklusive aller erforderlichen Pakete) via Composer installiert und im Anschluss das Skript des Contao Managers heruntergeladen und im Unterordner `public/` als `contao-manager.phar.php` gespeichert.
252252
+ Laragon erstellt darüber hinaus automatisch eine gleichnamige Datenbank »_mycompany_« sowie einen virtuellen Host `mycompany.local`
253253
+ Für den virtuellen Host muss außerdem die Windows-Hosts-Datei aktualisiert werden. Je nach Konfiguration der Windows-Benutzerkontensteuerung (UAC) wird man daher nach Abschluss der Installation aufgefordert, die Änderungen an der Systemdatei zu bestätigen. Darüber hinaus könnte an dieser Stelle ggf. auch eine Meldung der AntiViren-Software (oder einer anderen Sicherheitssoftware) darauf aufmerksam machen, dass der Zugriff auf die Windows-Hosts-Datei aus Sicherheitsgründen blockiert wird. Sollte das tatsächlich der Fall sein, müsste man zunächst die entsprechende Einstellung in der Sicherheitssoftware temporär deaktivieren und anschließend den Eintrag in der Windows-Hosts-Datei manuell ergänzen. Dazu öffnet man im Laragon-Verwaltungspanel über »_Menü_« > »_Tools_« > »_Bearbeiten drivers\etc\hosts_« die Hosts-Datei im Editor und fügt eine neue Zeile
254254

docs/manual/guides/local-installation/laragon.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ not contain any special characters, because it is also used as database name) an
287287

288288
![Enter project name]({{% asset "images/manual/guides/local-installation/en/laragon/19_laragon_websiteproject_2.png" %}}?width=250px&classes=shadow)
289289

290-
- A console window opens: In the background, Contao {{< current-version >}} (including all required packages) is installed via Composer.
290+
- A console window opens: In the background, Contao {{% siteparam "currentContaoVersion" %}} (including all required packages) is installed via Composer.
291291
Afterwards, the Contao Manager script is downloaded and saved in the subfolder `public/` as `contao-manager.phar.php`.
292292
- Laragon also automatically creates a database of the same name "*mycompany*" and a virtual host `mycompany.local`
293293
- For the virtual host, the Windows hosts file must also be updated. Therefore, depending on the Windows User Account

docs/manual/installation/install-contao.de.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ Wenn du Composer global installierst, kannst du den Befehl `composer` in jedem V
8585
### Contao über die Kommandozeile installieren {#contao-ueber-die-kommandozeile-installieren}
8686

8787
Im zweiten Schritt installierst du Contao über den Composer. Dabei steht »example« für das gewünschte
88-
Installations-Verzeichnis und die {{< current-version >}} für die zu [installierende Contao-Version](https://to.contao.org/release-plan).
88+
Installations-Verzeichnis und die {{% siteparam "currentContaoVersion" %}} für die zu [installierende Contao-Version](https://to.contao.org/release-plan).
8989

9090
```bash
91-
php composer.phar create-project contao/managed-edition example {{< current-version >}}
91+
php composer.phar create-project contao/managed-edition example {{% siteparam "currentContaoVersion" %}}
9292
```
9393

9494

0 commit comments

Comments
 (0)