user3359712
user3359712

Reputation: 23

Copying Assets to Web root folder instead of Web/Bundles

I have Symfony project in which i want to copy images to web folder. So I used bellow command.

php app/console assets:install web

It copy all images to Web/bundles/framework. I want all images in Web root folder. Please suggest me how can i change the path to store all images or assets to root folder of web instead of storing in bundles.

Upvotes: 1

Views: 270

Answers (1)

Alberto Fernández
Alberto Fernández

Reputation: 1598

You cannot do that, because the default bundles/ directory is hardcoded in the source code:

Symfony\Bundle\FrameworkBundle\Command\AssetsInstallCommand - Line 83

$bundlesDir = $targetArg.'/bundles/';

So I suggest either sticking to that convention or submitting a PR to the Symfony core repository to parametrize this directory.

Upvotes: 1

Related Questions