There's an unknown class in the services.yml file.

I was trying to use the https://www.drupal.org/project/phpstorm_metadata module on a site and it reported a missing class in the fontyourface.services.yml file.

Error: Class 'Drupal\fontyourface\Asset\FontYourFaceInlineCssCollectionRenderer' not found in Drupal\Component\DependencyInjection\Container->createService()

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

DrupalGideon created an issue. See original summary.

hmendes made their first commit to this issue’s fork.

hmendes’s picture

Status: Active » Needs review

Thanks for reporting this.
Removing the unused service declaration.

elber’s picture

Status: Needs review » Reviewed & tested by the community

Hi, I checked and saw that the service and class are not used in the module, it makes sense to delete them moving to RTBC.

  • hmendes committed 7e7fdfcb on 8.x-3.x
    Issue #3168962 by hmendes, DrupalGideon, elber: Services file error
    
hmendes’s picture

Status: Reviewed & tested by the community » Fixed

Thanks

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.