Skip to content

Get Extbase injections working in your TYPO3 project by configuring the site to be used for settings and TypoScript

License

Notifications You must be signed in to change notification settings

undkonsorten/extbase-cli-aware-configuration-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Extbase cli aware configuration manager

This extension provides a configuration manager for cli context in TYPO3.

So if you need for example typoscript settings in cli context e.g. commands this extension helps to do so.

The extension needs to be configured in the Service.yaml or Service.php:

TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface:
    alias: 'Undkonsorten\ExtbaseCliAwareConfigurationManager\Configuration\CliAwareConfigurationManager'
    public: true

  Undkonsorten\ExtbaseCliAwareConfigurationManager\Configuration\CommandLineInterfaceConfigurationManager:
    arguments:
      $siteIdentifier: 'SomeSiteIdentifier'

The extension will look for typoscript setting on the site with identifier 'SomeSiteIdentifier'.

This extension also solves the problem using extbase repositories within cli context e.g. this error:

[ RuntimeException ]
No request given. ConfigurationManager has not been initialized properly.

For more information about this problem/topic: https://forge.typo3.org/issues/105554 https://forge.typo3.org/issues/105616

About

Get Extbase injections working in your TYPO3 project by configuring the site to be used for settings and TypoScript

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages