Drupal 8 implements the PSR-4 standard for package-based PHP namespace autoloading. In that case the name of your class file doesn't correspond to the name of the actual class used.

Solution

Make sure all your class names and namespaces are right!

Comments