Skip to content
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

Custom bake Policy template #138

Closed
blieb opened this issue Jul 31, 2020 · 4 comments
Closed

Custom bake Policy template #138

blieb opened this issue Jul 31, 2020 · 4 comments
Labels
Milestone

Comments

@blieb
Copy link

blieb commented Jul 31, 2020

Hi,

Is is posible to create a custom bake template for the policy?

I've created /src/Template/Bake/policy.twig (cakephp 3.x) But this file is not used when I run the bake command. I need to change some little things in template for my project. Else I have to edit it every time when I make a new Policy.

@markstory markstory added this to the 1.3.0 milestone Aug 1, 2020
@markstory
Copy link
Member

I think your file will need to be Template/Authorization/Bake/policy.twig but I could be wrong, it has been a while since I looked at how template paths are resolved for bake in 3.x

@blieb
Copy link
Author

blieb commented Aug 3, 2020

I think your file will need to be Template/Authorization/Bake/policy.twig but I could be wrong, it has been a while since I looked at how template paths are resolved for bake in 3.x

Yes tried that do, was already playing with the directories on information with what I saw, but unable to get it work yet. Trying to figure out now template paths are resolved.

@othercorey
Copy link
Member

I think it would be Template/Plugin/Authorization/Bake/policy.twig

@blieb
Copy link
Author

blieb commented Aug 3, 2020

I think it would be Template/Plugin/Authorization/Bake/policy.twig

Ah tnx! that works! did not try to add 'Plugin' in path 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants