-
Notifications
You must be signed in to change notification settings - Fork 125
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
Conflict with [FrameworkBundle] Added Crontoller::isCsrfTokenValid [SF 2.6.0] #789
Comments
@enkaho thanks for the notice |
Thanks... Unfortunatelly... the only way I see for now to handle that change is to introduce a BC Break. I thought about testing the Symfony version and if it is less then 2.5: we don't change anything, otherwise the function will be different, but we still have a BC break for 2.6... If we strictly want to respect semver, we need to create a new Major version... What's your opinion? |
ping @loostro Matter here is, depending on your Symfony version, we don't generate the same method name... a kind of BC Break (if you overrided the isCsrfTokenValid()). But I was wondering something... based on the situation where someone upgrade its Symfony to 2.6, the bundle will not be anymore compatible with it. So, except by a BC Break it will not be able to use this bundle anymore. But given that the developper make an upgrade of Symfony2.6, we can assume he will have to change its customization... so we can easily imagining changing our function and so provide compatibilities with Symfony 2.6+ Otherwise, we'll need to update composer.json and constraint the max version of Symfony to <2.6 I don't have any clear idea about what we can do here... |
@sescandell We can do two things:
And when next LTS is released (2.7) then merge this patch into repository. |
Sounds like a good idea... Let's do it |
@sescandell @loostro What need |
Yeah, I already did. But I have no luck with overriding. I placed this
in I had also no luck with |
Hi @robertfausk Actually to "override" a template you need to add your "templates" directory as a config parameter. Take a look to the param |
@sescandell Thank you very much. I got it now. Works like a charm ;) Additionally I had to create one emtpy dir named |
You're right... I forgot to mention this. |
@robertfausk Exactly the reason I've written that documentation: A long time ago I had the same problem ;) |
Hello I am trying to edit the templates, i have a SF 2.6, Here is my directory app Resources Admingenerator GeneratorBundle templates CommonAdmin *templates* Propel And on my config: templates_dirs: ["%kernel.root_dir%/../app/Resources/AdmingeneratorGeneratorBundle/templates" ] Can someone explainme why this does not work properly. |
@fjbatresv if you are working on Windows, add a file in your Propel directory (even if it is empty), and it should work. |
@sescandell I am working on a linux distibution and this doesnt work. |
OK... I think this is because of your path. You should use this: |
I think with Symfony 2.7.* this doesn't work any more :( This is my folder structure:
And my config.yml admingenerator_generator:
[...]
templates_dirs: [ "%kernel.root_dir%/../app/Resources/templates" ] Am I doing something wrong here? |
@sebastianlp Check if you made every step as described here. Futhermore, the fix is, if I'm correct, now being developed in the newer version of the Bundle (see here. So, it might actually be time for you to update to the new bundle, also to benefit of new functions. |
Your path should be |
@bobvandevijver , @sescandell admingenerator_generator:
templates_dirs: [ "%kernel.root_dir%/../app/Resources/Admingenerator/GeneratorBundle/templates" ] and this is my folder structure: Thank you guys |
In te docs the directory is mentioned as AdmingeneratorGeneratorBundle, so without the extra subdir per Symfony convention. I also have that and it works, so you could try that. |
OK... I'll make a test on the demo project moving on sf2.7 and let you know. |
@bobvandevijver Thank you. I tried both paths, that one in the image and what you mention in the last comment, both with error. @sescandell Thank you, if it's more convenient to you, I can upload my project |
Working on it. I'll probably be able to provide you a response tomorrow |
AdmingeneratorGeneratorBundle / Resources / templates / CommonAdmin / csrf_protection.php.twig
cf : symfony/symfony@479c833
The text was updated successfully, but these errors were encountered: