Discovering how a migrated Symfony-based BO controller works
Understanding the legacy is important for a good understanding of the full system, but as the BO controller’s migration is in progress, it is far more important to know how a Symfony BO controller works.
Let’s consider the already-migrated General
parameter’s controller, visible from the BO Menu via Shop Parameters | General at the following URL – https://www.domainname.extension/adminXXX/index.php/configure/shop/preferences/preferences?_token=abcdef123
– with adminXXX
as the variable corresponding to your shop and abcdef123
as the generated token.
In Chapter 2, Configuration and Initialization of PrestaShop, we saw that the Symfony kernel was loaded in the /adminXXX/index.php
file. In our example, the router checks the routing configuration files located in the /src/PrestaShopBundle/Resources/config/routing/admin/
folder and particularly inside the /src/PrestaShopBundle/Resources...