Search code examples
phpassetssymfony

Is it possible to install bundle assets directly in web/ directory?


By default, symfony takes a bundle's assets from the bundle's public/ directory and installs them in web/bundles/bundlename/.

Is it possible to install those assets directly in web/ instead?


Solution

  • The /bundles/ part is pretty much hardcoded so there's no built in support for such assets installation. I believe you'll be best served by implementing your own command for this task.