Issue Bug New Stale

#109723Missing dependencies of typo3/cms-backend

Daniel Kruse 04/28/26, 08:50 updated 09/11/26, 09:39

Description

Hello everyone,
we have 2 Extension, that only require “typo3/cms-backend” to be installed. (changes some styling in backend)
With the composer installation with “—no-dev” we get this error-messages:

Cannot autowire service "TYPO3\CMS\Core\Authentication\Mfa\Provider\RecoveryCodesProvider": argument "$viewFactory" of method "__construct()" references interface "TYPO3\CMS\Core\View\ViewFactoryInterface" but no such service e  
  xists. Did you create an instantiable class that implements this interface? 
Cannot autowire service "TYPO3\CMS\Core\LinkHandling\PageTypeLinkResolver": argument "$linkFactory" of method "__construct()" has type "TYPO3\CMS\Frontend\Typolink\LinkFactory" but this class was not found.

The first message is due to no implementation of the ViewInterface is available, can be fixed with requiring cms-install.
The reason for the second message is, that the __construct() contains this lines (shortend):

use TYPO3\CMS\Frontend\Typolink\LinkFactory;

public function __construct(
        protected LinkFactory $linkFactory
) {...}

this can be fixed with requiring cms-frontend

i will fix my problem with this requires, but maybe you come to the conclusion to improve this behavior, so i can move these back to “require-dev”:

"typo3/cms-frontend": "^11.5 || ^12.4 || ^13.0 || ^14.3",
"typo3/cms-install": "^11.5 || ^12.4 || ^13.0 || ^14.3"

thanks for looking into this,
daniel

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Fix this issue

Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch

Commit message
[BUGFIX] Missing dependencies of typo3/cms-backend Resolves: #109723 Releases: main