phpstorm symfony2 missing service warning

后端 未结 6 1369
醉酒成梦
醉酒成梦 2021-02-14 08:46

I have installed the Symfony2 plugin for Phpstorm but I can\'t get the IDE to see these existing services or other injected objects. Can these be fixed somehow, so the warnings

6条回答
  •  难免孤独
    2021-02-14 09:09

    If the service is defined in XML and not in YAML then the auto-completion works out-of-the-box without the need to use the @var annotation.

    You can try this sample definition that will provide you with autocomplete when you want to use one of the defined services.

    
    
    
    
        
            
                
            
            
            
        
    
    

    )

提交回复
热议问题