The legacy BO and Symfony admin controller initialization
As explained in the first chapter, all the old controllers of the BO rely on the legacy core of PrestaShop, while modern controllers use the Symfony framework. During the migration of the controllers from the old BO to Symfony, we need to access all of them.
We will now study this by reverse engineering the way both types are initialized.
The legacy BO controller initialization
After the PrestaShop setup, you are given the BO base URL, which is structured like this: https://www.urlofthewebsite.extension/adminXXX
, with XXX
as a random sequence of digits provided by the PrestaShop installation. It is different in every shop for security reasons.
If you browse the website folder structure, you will find the /
adminXXX/
folder.
Let’s do reverse engineering of the login page of the BO. Its URL follows this pattern: https://www.urlofthewebsite.extension/adminXXX/index.php?controller=AdminLogin
.
In fact, it...