Issue Bug Closed

#60381Local object configuration ignored in CLI context

Mathias Brodala 07/18/14, 09:43 updated 11/07/19, 11:26

Description

Local object configuration (module.tx_myext.objects in addition to config.tx_extbase.objects) is ignored when executing command controllers through the Extbase CLI script.

This is due to the fact that at the time object configuration is processed in Bootstrap::configureObjectManager(), the name of the extension is not yet available. It is only available after the Mvc\Cli\RequestBuilder has built the CLI request object based on the command to execute.

The only workaround ATM is to register an own CLI script which basically copies the CommandLineLauncher.php from Extbase but invokes Bootstrap with the extensionName as configuration argument.

My suggestion now is that in Mvc\Cli\RequestHandler::handleRequest() object registration is performed once more. Any other ideas?

Reviews 0

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