Reputation: 23
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
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