Sylius: Help can't override HomepageController:indexAction from SyliusShopBundle

Created on 13 Oct 2016  路  4Comments  路  Source: Sylius/Sylius

i overrided the HomepageController From SyliusShopBundle:indexAction to pass same data and display it in the index.html.twig but an exception keep appearing even if i clear the cache :

Catchable Fatal Error: Argument 1 passed to AppBundle\Controller\CustomHomepageController::__construct() must be an instance of Symfony\Bundle\FrameworkBundle\Templating\EngineInterface, none given, called in C:\wamp3\www\acme\app\cache\dev\appDevDebugProjectContainer.php on line 1619 and defined

this is a link to my code :
http://stackoverflow.com/q/40003590/5092143

*excuse my english

Help Wanted

Most helpful comment

See my answer on StackOverflow 鈥斅爕ou miss the constructor argument in your service definition

All 4 comments

See my answer on StackOverflow 鈥斅爕ou miss the constructor argument in your service definition

thx @tchapi , now another exception appeared : An exception has been thrown during the rendering of a template ("None of the chained routers were able to generate route: Route 'sylius_shop_login' not found") in SyliusShopBundle:Homepage\Menu:_security.html.twig at line 7

@yosriMekni Sylius uses Stackoverflow as its official support channel. Please keep this discussion there. Thanks!

PS. You probably didn't import the shop routing

ok , and thx

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xleliberty picture xleliberty  路  3Comments

tchapi picture tchapi  路  3Comments

bnd170 picture bnd170  路  3Comments

stefandoorn picture stefandoorn  路  3Comments

javiereguiluz picture javiereguiluz  路  3Comments