SensioFrameworkExtraBundle
SensioFrameworkExtraBundle copied to clipboard
An extension to Symfony FrameworkBundle that adds annotation configuration for Controller classes
Imagine this route: ``` feature_product: pattern: /category/{category}/feature-product/{product} defaults: _controller: MyBundle:MyController:feature product: ~ ``` And this action: ``` /** * @Template */ public function featureAction(Category $category, Product $product = null) {...
This problem appeared after upgrading to 2.1.8. I'm using Doctrine ORM 2.3.2. I think this is related to an optional parameter in my controller action.
It would be great if the ParamConverter could be extended to return an `ArrayCollection` with multiple entities. In that way, it is easier to work with the choice field. My...
I'd like to propose a simplification of some of the options for ParamConverter (as well as making sure the documentation is rock-solid for how to use the different options). Currently,...
I have the following Cache annotation on one of my controller actions. ``` * @Cache( * public = true, * maxage = "15", * vary = { "Accept-Encoding", "X-Foo-A", "X-Foo-B"}...
According to these docs http://symfony.com/doc/current/book/security.html#access-controls-authorization, I suppose to get 401 in response to the following action for unauthneticated users: ``` php /** * ... * @Security("has_role('ROLE_USER')") * ... */ public...
I use FOSUserBundle master version. config FosUserBundle: ``` YAML security: always_authenticate_before_granting: true ``` Access denied after change the ROLE: ``` PHP /** * @Security("has_role('ROLE_USER')") */ public function indexAction() { }...
Hello, before I hack away on a big refactoring of param converters I wanted to ask some feedback on my ideas: - Introduce names for parameter converters, and allow to...
ParamController: Controller method parameters without typehint cannot be made optional (implicitly)
Currently, when a paramconverter is applied to a parameter which is not typehinted in the controller method prototype, it cannot be made optional, without explicitly defining the annotation with isOptional=true....