sylius 控制器自定义未覆盖供应商控制器
sylius controller customization is not overriding the vendor controller
我已经按照Sylius controller customization(http://docs.sylius.org/en/latest/customization/controller.html)官方文档中描述的全部流程完成了。但是定义的控制器并没有覆盖默认的标准控制器。
services:
sylius.controller.shop.homepage: AppBundle\Controller\Shop\HomepageController
它报告服务错误为
A service definition must be an array or a string starting with "@" but string found for service "sylius.controller.shop.homepage" in /home/xxxx/web/rude_data/app/config/services.yml. Check your YAML syntax in /home/xxxx/web/rude_data/app/config/services.yml (which is being imported from "/home/xxxx/web/rude_data/app/config/config.yml").
我是 sylius 的新手,
所以一些教程会更好。谢谢你
应该是:
sylius.controller.shop.homepage:
class: AppBundle\Controller\Shop\HomepageController
我建议您加入 sylius slack 频道,在那里您可以询问有关文档和 sylius 相关问题的问题。社区真的很有帮助:)
我已经按照Sylius controller customization(http://docs.sylius.org/en/latest/customization/controller.html)官方文档中描述的全部流程完成了。但是定义的控制器并没有覆盖默认的标准控制器。
services:
sylius.controller.shop.homepage: AppBundle\Controller\Shop\HomepageController
它报告服务错误为
A service definition must be an array or a string starting with "@" but string found for service "sylius.controller.shop.homepage" in /home/xxxx/web/rude_data/app/config/services.yml. Check your YAML syntax in /home/xxxx/web/rude_data/app/config/services.yml (which is being imported from "/home/xxxx/web/rude_data/app/config/config.yml").
我是 sylius 的新手,
所以一些教程会更好。谢谢你
应该是:
sylius.controller.shop.homepage:
class: AppBundle\Controller\Shop\HomepageController
我建议您加入 sylius slack 频道,在那里您可以询问有关文档和 sylius 相关问题的问题。社区真的很有帮助:)