leaseweb / lswdefaultroutingbundle Goto Github PK
View Code? Open in Web Editor NEWSymfony2 bundle that provides default routing, relative routing and default templating.
Symfony2 bundle that provides default routing, relative routing and default templating.
Hi,
I'm using LswDefaultRoutingBundle for a long time now but i just noticed a problem.
I tried to add default routing like the installation guide
FosUserBundle:
resource: "@FOSUserBundle"
prefix: /
type: default
and it works prefectly. But as soon as i override FosUserBundle from my bundle it doesn't work anymore and only the children's actions seems to be red.
public function getParent(){ return 'NespressoUserBundle'; }
Any idea about how to fix it ?
Thank you for your time !
When you use controller as-a-service an attempt is made to create the controller, rather then requesting the service. Because of this required arguments are not passed, and hence a fatal error.
at ControllerResolver ->createController ('MyController::myTestAction')
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Controller/ControllerResolver.php at line 80
at ControllerResolver ->getController (object(Request))
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Controller/TraceableControllerResolver.php at line 46
at TraceableControllerResolver ->getController (object(Request))
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 133
at HttpKernel ->handleRaw (object(Request), '1')
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 66
at HttpKernel ->handle (object(Request), '1', true)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php at line 64
at ContainerAwareHttpKernel ->handle (object(Request), '1', true)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php at line 185
Solution: if the Sensio\Bundle\FrameworkExtraBundle\Configuration\Route
annotation is present, and the service
is specified, use my_service.myTestAction
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.