Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Symfony asset path highlight in PHPStorm after changing web folder name

After changing the directory name in Symfony3.4 from web to public_html the IDE (PHPStorm with Symfony plugin enabled) keeps highlighting all asset paths:

asset highlight

The website works, all assets are loading fine.

Do I need to change anything to tell the IDE to use the newly renamed folder for assets?

Also edited composer.json

...
"symfony-web-dir": "public_html",
...
like image 466
Nodir Rashidov Avatar asked May 02 '18 17:05

Nodir Rashidov


1 Answers

  1. Open PhpStorm Settings.
  2. Search for 'Symfony'
  3. Select the 'Symfony' node (under 'PHP')
  4. Set the Web Directory value to public_html
  5. Keep coding! :)

NOTICE: This, of course, requires that you have the IntelliJ Symfony Plugin installed and enabled.

like image 131
Matías Navarro Carter Avatar answered Sep 21 '22 22:09

Matías Navarro Carter