Comments (11)
@sidux That doesn’t sound like an issue with JMSSecurityExtra or this bundle.
If you’re using SensioFrameworkExtraBundle you can return an array in the controller if that action has a @Template annotation but otherwise you always have to return an instance of Symfony\Component\HttpFoundation\Response
in your controller.
from controllerextrabundle.
I am using the annotation @JsonResponse of this bundle.
from controllerextrabundle.
Oops..I must have been a bit tired! After having another look at the code of both this bundle and JMSSecurityExtraBundle I’m surprised they interfere with each other.
Let’s see what @mmoreram knows about this.
from controllerextrabundle.
@sidux @hacfi Hmmm, interesting... Let me test it. This must be something about jsonResponse event priority. Right now is subscribed to the kernel.reponse
event with priority -128
, maybe there is some kind of collision here.
from controllerextrabundle.
@sidux Btw, can you post your controller with annotations right here please?
from controllerextrabundle.
Afaik JMSSecurityExtraBundle doesn’t use the kernel.view
event at all. It deals with the authentication much earlier.
from controllerextrabundle.
Sorry, I am also tired XD I meant kernel.view
XD
from controllerextrabundle.
/**
* @Route("/access/{event}")
* @Secure("ROLE_ADMIN")
* @Method("POST")
* @JsonResponse
*
* @param Request $request
* @param Event $event
*
* @return array
*/
public function giveAccess(Request $request, Event $event) {}
when i remove the @Secure annotation everything works fine.
from controllerextrabundle.
Challange accepted! :)
from controllerextrabundle.
@sidux ping! Still failing?
from controllerextrabundle.
Hi,
i don't use JMSSecurityExtraBundle anymore, replaced it with SensioFrameworkExtraBundle and it works fine 👍
from controllerextrabundle.
Related Issues (20)
- Version 2 HOT 2
- orwhere and substring search
- Adding PagerFanta Support HOT 6
- v1.1.5 has a dependency on a non-existent service "request_stack" HOT 3
- Support FormAnnotation with no form parameter HOT 2
- Get Query or Post params on annotation HOT 2
- Unrecognized option "pagination" under "controller_extra" HOT 5
- Multiple wheres not works
- Like with value from get parameter and wildcards not works
- Multiple paginator params don't work HOT 2
- Header annotation HOT 5
- KNP Breadcrumb annotation HOT 10
- Wildcard % not working properly HOT 3
- Problems using dates in the paginator where params HOT 1
- ODM support HOT 1
- Problem when using boolean params in the where filters
- PaginatorAnnotation Factory Pattern HOT 4
- Rename PaginatorAnnotation to Paginator HOT 1
- PaginatorWheresEvaluator bug HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from controllerextrabundle.