Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom homepage controller as public service #9827

Merged
merged 1 commit into from
Oct 16, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Custom homepage controller as public service
It seems that the Custom homepage controller service needs to be marked as public as weel, otherwise it cannot be fetched from the container. 
It looks like there is a default service configuration for the controllers in config.yml which is supposed to make public all controllers in AppBundle but it doesn't resolve this issue
  • Loading branch information
davidroberto authored Oct 15, 2018
commit 27a327e2072f6e1fcbd9b8c98326989e6916b089
1 change: 1 addition & 0 deletions docs/customization/controller.rst
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ If you still need the methods of the original HomepageController, then copy its
sylius.controller.shop.homepage:
class: AppBundle\Controller\Shop\HomepageController
arguments: ['@templating']
public: true

Remember to import the ``app/config/services.yml`` into the ``app/config/config.yml``.

Expand Down