Can't cusomize the HompageController

Hi, i would want to customize a Standard Controller. I would like to add some logic to the Homepage. I follow this page - https://docs.sylius.com/en/latest/customization/controller.html. But when i run php bin/console debug:container sylius.controller.shop.homepage to check if the class has changed, i get the same Sylius\Bundle\ShopBundle\Controller\HomepageController, instead of , App\Controller\Shop\HomepageController. So all the logic in my customized page don’t work.

Can you share the controller service definition?

Hey,

this is my fitle of services.yml :

Put parameters here that don’t need to change on each machine where the app is deployed

https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration

parameters:

locale: en_US

services:

# Default configuration for services in *this* file

_defaults:

    # Automatically injects dependencies in your services

    autowire: true

    # Automatically registers your services as commands, event subscribers, etc.

    autoconfigure: true

    # Allows optimizing the container by removing unused services; this also means

    # fetching services directly from the container via $container->get() won't work

    public: false

_instanceof:

    Sylius\Bundle\ResourceBundle\Controller\ResourceController:

        autowire: false

    Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType:

        autowire: false

# Makes classes in src/ available to be used as services;

# this creates a service per class whose id is the fully-qualified class name

App\:

    resource: "../src/*"

    exclude: "../src/{Entity,Migrations,Tests,Kernel.php}"

# Controllers are imported separately to make sure services can be injected

# as action arguments even if you don't extend any base controller class

App\Controller\:

    resource: "../src/Controller"

    tags: ["controller.service_arguments"]

app.controller.shop.homepage:

    class: App\Controller\Shop\HomepageController

    arguments: ["@templating"]

    tags: ["controller.service_arguments"]

You can either set an alias for the controller:

sylius.controller.shop.homepage: "@App\Controller\Shop\HomepageController"

Or override the sylius_shop_homepage route