格式化代码后的Phpstorm-Symfony2错误
Phpstorm-Symfony2 Errors after format code
我昨天安装了 Phpstorm 来尝试使用我的 symfony2 项目。我尝试了 "format code" 选项....但现在我有很多错误,例如
ReflectionException in AddConsoleCommandPass.php line 40:
Class
SensioLabs\Security\Command\SecurityCheckerCommand
does not exist
请问我该如何解决?
谢谢!
您必须对您的代码使用重新格式化,而不是 Symfony 供应商文件。例如在控制器或实体文件中尝试。配置 PHPStorm 使用 Symfony2 coding standards check out this tutorial. More infos here to use PHPStorm with Symfony2.
我昨天安装了 Phpstorm 来尝试使用我的 symfony2 项目。我尝试了 "format code" 选项....但现在我有很多错误,例如
ReflectionException in AddConsoleCommandPass.php line 40:
Class
SensioLabs\Security\Command\SecurityCheckerCommand
does not exist
请问我该如何解决? 谢谢!
您必须对您的代码使用重新格式化,而不是 Symfony 供应商文件。例如在控制器或实体文件中尝试。配置 PHPStorm 使用 Symfony2 coding standards check out this tutorial. More infos here to use PHPStorm with Symfony2.