Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[RFC] Allow different location for bundle assets #29213

Copy link
Copy link
Closed
@garak

Description

@garak
Issue body actions

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.