Overriding Controller


#1

Did as written here http://docs.sylius.com/en/1.1/customization/controller.html

bin/console debug:container sylius.controller.shop_user

Information for Service "sylius.controller.shop_user"
=====================================================

 ---------------- ------------------------------------------
  Option           Value
 ---------------- ------------------------------------------
  Service ID       sylius.controller.shop_user
  Class            AppBundle\Controller\User\UserController
  Tags             -
  Calls            setContainer
  Public           yes
  Synthetic        no
  Lazy             no
  Shared           yes
  Abstract         no
  Autowired        no
  Autoconfigured   no
 ---------------- ------------------------------------------

sylius_user:
    resources:
        shop:
            user:
                classes:
                    controller: AppBundle\Controller\User\UserController

<?php
declare(strict_types = 1);

/**
 * @package AppBundle\Controller\User
 */
namespace AppBundle\Controller\User;

use Sylius\Bundle\ResourceBundle\Controller\ResourceController;

/**
 * Class UserController
 */
class UserController extends ResourceController
{

}

in return, I get it:

The controller for URI “/account/change-password” is not callable. Expected method “changePasswordAction” on class “AppBundle\Controller\User\UserController”. Available methods: “__construct”, “showAction”, “indexAction”, “createAction”, “updateAction”, “deleteAction”, “bulkDeleteAction”, “applyStateMachineTransitionAction”, “setContainer”.

Do you have idea what is the problem?