When migrating from $objectManager->get() to constructor dependency injection I got this error:
Cannot autowire service "Vendor\ExtensionKey\ViewHelpers\MenuViewHelper": argument "$pageService" of method "FluidTYPO3\Vhs\ViewHelpers\Menu\AbstractMenuViewHelper::injectPageService()" references class "FluidTYPO3\Vhs\Service\PageService" but no such service exists.
To be able to use constructor DI, the service needs to be exposed through an Service.yaml file. This PR adds this file.
When migrating from
$objectManager->get()
to constructor dependency injection I got this error:To be able to use constructor DI, the service needs to be exposed through an Service.yaml file. This PR adds this file.