Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed finding resources under the main app/ directory
* Now, all resources can be stored globally (templates, assets, ...) * The new directory is app/Resources/...
- Loading branch information
Showing
7 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a229410
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make %kernel.resources_dir% instead of %kernel.root_dir%/Resources?
This way developers could have more freedom over the naming.
It's just I don't like app/config and app/Resources in one directory (case mixed).
a229410
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just delete the Resources dir and put everything in bundles as it should be :)
a229410
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can one override templates of other bundles inside SomeBundle/Resources?
a229410
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you just need to define a getParent() method in your SomeBundle that returns "OtherBundle", then SomeBundle's templates takes priority over OtherBundle's. IIRC this limited to one parent, so you'd have to create one bundle per eveyr bundle you want to override stuff from.. I guess app/Resources makes it easier, but I'm still not a big fan