Symfony asset path highlight in PHPStorm after changing web folder name
Asked Answered
U

1

6

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",
...
Ulphia answered 2/5, 2018 at 17:4 Comment(0)
H
13
  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.

Humidistat answered 2/5, 2018 at 17:18 Comment(1)
WOW! That took me hours! Thanks.Machinist

© 2022 - 2024 — McMap. All rights reserved.