Closed
Description
Description
The current behavior for assets in bundles is looking for an hard-coded path named Resources/public/
in bundle's path.
So, when developing a bundle, you're forced to use the "typical" directory structure, like the following example:
DependencyInjection/
FooBundle.php
Resources/ (with public, docs, etc.)
Tests/
It would be nice to allow to structure your bundle with a more modern (and more standard), like this:
assets
docs
src
templates
tests
With the hard-coded path mentioned above, this is not possible, unless you symlink src/Resources
to asset
directory.
I found a similar RFC in #11051 but this is far simpler, since it only involves public paths for bundles.
Also, a solution would be much simpler and not BC-breaking (I guess that adding a new method to Bundle
class would be enough)