dachcom-digital / pimcore-seo

The last SEO Bundle for Pimcore you'll ever need!
Other
38 stars 14 forks source link

NewsBundle collision #20

Closed nicklassandell closed 3 years ago

nicklassandell commented 3 years ago
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no

During installation, I get the following error thrown:

Fatal error: Uncaught Symfony\Component\DependencyInjection\Exception\RuntimeException: Cannot autowire service "SeoBundle\MetaData\Extractor\ThirdParty\News\EntryMetaExtractor": argument "$headMetaGenerator" of method "__construct()" has type "NewsBundle\Generator\HeadMetaGeneratorInterface" but this class was not found. in /app/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/DefinitionErrorExceptionPass.php:54

We have a bundle in our project called NewsBundle, but it is not the NewsBundle that is expected from the EntryMetaExtractor.php file. Perhaps there is a safer way of handling this than assuming it is the same bundle? NewsBundle is a pretty generic name after all.

Thanks!