Jump to content

chamath viranga

New Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by chamath viranga

  1. PS version (1.7.5.2) Need to override (extend) ProductController with new custom controller. PrestaShopBundle\Controller\Admin\ProductController extended (custom) controller path : modules/my_module/Controller/ service.yml path : module/my_module/config/services.yml services.yml # modules/my_module/config/services.yml ProductControllerOverride: class: my_module\Controller\ProductControllerOverride decorates: PrestaShopBundle\Controller\Admin\ProductController arguments: ['@ProductControllerOverride.inner'] I tried with prestashop controller override and decorate both methods in documentation. Still no luck. Prestashop override documentation Output of decorate method InvalidArgumentException The service file "/home/user_name/projects/my_prestashop/src/PrestaShopBundle/DependencyInjection/Compiler/../../../../modules/my_module/config//services. yml" is not valid. It should contain an array. Check your YAML syntax.
×
×
  • Create New...