idea-php-drupal-symfony2-bridge
                                
                                 idea-php-drupal-symfony2-bridge copied to clipboard
                                
                                    idea-php-drupal-symfony2-bridge copied to clipboard
                            
                            
                            
                        Method completion not working on `Drupal::service` (but works on container)
If used like this:
    \Drupal::getContainer()->get('entity_type.manager')->...
method completion is working. However, when called like this:
  \Drupal::service('entity_type.manager')->...
method completion is not working. In both cases autocomplete of the service name does work...
I also have this issue
When I use the Drupal::service() container it will autocomplete the name of the service (eg \Drupal::service('domain.negotiator')), and also allow ctrl+clicking to the class, but it will not autocomplete any methods. I've invalidated cache and rebuilt the index
Hello, any plan on fixing this issue (check your mails :D) ?
Much appreciated, thanks you :)
thx yes have seen this :)
@Haehnchen any plans to spend some time on this? I could help if you point to the place where this should be addressed.
Bump, would be a great improvement!
Handy workaround which I find does work for autocompletion & type-hinting etc: use \Drupal::getContainer()->get('service.name') as a drop-in replacement for Drupal::service('service.name') !
update: oh gosh, that's exactly what the OP said. Sorry!