Skip to content

Commit 4fc1098

Browse files
authored
Merge pull request #2040 from PrestaEdit/patch-69
Update Symfony documentation links to version 6.4
2 parents 8c13ee7 + fb34e5b commit 4fc1098

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

development/architecture/modern/controller-routing.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ title: Symfony controllers & routing
55
# Symfony controllers & routing
66

77
{{% notice tip %}}
8-
Read the Symfony documentation on [Controllers](https://symfony.com/doc/4.4/controller.html) and [Routing](https://symfony.com/doc/4.4/routing.html).
8+
Read the Symfony documentation on [Controllers](https://symfony.com/doc/6.4/controller.html) and [Routing](https://symfony.com/doc/6.4/routing.html).
99
{{% /notice %}}
1010

11-
Controllers are located in `src/PrestaShopBundle/Controller/Admin` folder. They are organized in sub-folders following the Back Office menu. For instance, the [TaxController](https://github.com/PrestaShop/PrestaShop/blob/8.0.x/src/PrestaShopBundle/Controller/Admin/Improve/International/TaxController.php) is located in `src/PrestaShop/Controller/Admin/Improve/International`.
11+
Controllers are located in `src/PrestaShopBundle/Controller/Admin` folder. They are organized in sub-folders following the Back Office menu. For instance, the [TaxController](https://github.com/PrestaShop/PrestaShop/blob/9.0.x/src/PrestaShopBundle/Controller/Admin/Improve/International/TaxController.php) is located in `src/PrestaShop/Controller/Admin/Improve/International`.
1212
Same applies to **Improve**, **Sell** sections etc.
1313

1414
This is how the directory tree of controllers should look like:
@@ -40,7 +40,7 @@ Symfony Controllers should be thin by default and have only one responsibility:
4040
* Validation
4141
* etc...
4242

43-
You can take a look at [PerformanceController](https://github.com/PrestaShop/PrestaShop/blob/8.0.x/src/PrestaShopBundle/Controller/Admin/Configure/AdvancedParameters/PerformanceController.php) for an example of good implementation, and [ProductController](https://github.com/PrestaShop/PrestaShop/blob/8.0.x/src/PrestaShopBundle/Controller/Admin/ProductController.php) for something you should avoid at all costs.
43+
You can take a look at [PerformanceController](https://github.com/PrestaShop/PrestaShop/blob/9.0.x/src/PrestaShopBundle/Controller/Admin/Configure/AdvancedParameters/PerformanceController.php) for an example of good implementation, and [ProductController](https://github.com/PrestaShop/PrestaShop/blob/9.0.x/src/PrestaShopBundle/Controller/Admin/ProductController.php) for something you should avoid at all costs.
4444

4545
{{% notice warning %}}
4646
**Never, ever call the legacy controller inside the new controller**. It's a no go, no matter the reason!
@@ -185,7 +185,7 @@ In this case, you can use the [Controllers helper functions](#controller-helpers
185185

186186
## Routing in PrestaShop
187187

188-
Routes are responsible for mapping a controller action to an url, you can read more about routing in [symfony docs](https://symfony.com/doc/4.4/routing.html).
188+
Routes are responsible for mapping a controller action to an url, you can read more about routing in [symfony docs](https://symfony.com/doc/6.4/routing.html).
189189

190190
{{% notice info %}}
191191
PrestaShop uses YAML files for service declaration and routing (NOT ANNOTATIONS).
@@ -308,4 +308,4 @@ redirected to the new migrated url.
308308
309309
### Javascript generation
310310
311-
In order to avoid hardcoded links in JavaScript, Prestashop uses the [`Router` component](https://github.com/PrestaShop/PrestaShop/blob/8.0.x/admin-dev/themes/new-theme/js/components/router.ts).
311+
In order to avoid hardcoded links in JavaScript, Prestashop uses the [`Router` component](https://github.com/PrestaShop/PrestaShop/blob/9.0.x/admin-dev/themes/new-theme/js/components/router.ts).

0 commit comments

Comments
 (0)