GlobalVariableProvider extends AbstractProvider
Can be used by specific provider implementations and supports basic functionality, required by the interface.
Table of Contents
Properties
- $blindedConfigurationOptions : array<string|int, mixed>
- Blind configurations which should not be visible to mortal admins
- $eventDispatcher : EventDispatcherInterface
- $globalVariableKey : string
- The $GLOBALS key to be processed
- $identifier : string
- $label : string
Methods
- __construct() : mixed
- __invoke() : $this
- This method must exists since it's called from the provider registry to provide the tag attributes from the definition.
- getConfiguration() : array<string|int, mixed>
- Returns the configuration, displayed in the module
- getIdentifier() : string
- Returns the provider identifier
- getLabel() : string
- Returns the providers' label (locallang or static text)
- getLanguageService() : LanguageService
Properties
$blindedConfigurationOptions
Blind configurations which should not be visible to mortal admins
protected
array<string|int, mixed>
$blindedConfigurationOptions
= ['TYPO3_CONF_VARS' => ['BE' => ['installToolPassword' => '******'], 'DB' => ['database' => '******', 'host' => '******', 'password' => '******', 'port' => '******', 'socket' => '******', 'username' => '******', 'Connections' => ['Default' => ['dbname' => '******', 'host' => '******', 'password' => '******', 'port' => '******', 'user' => '******', 'unix_socket' => '******']]], 'HTTP' => ['cert' => '******', 'ssl_key' => '******'], 'MAIL' => ['dsn' => '******', 'transport_smtp_encrypt' => '******', 'transport_smtp_password' => '******', 'transport_smtp_server' => '******', 'transport_smtp_username' => '******'], 'SYS' => ['encryptionKey' => '******']]]
$eventDispatcher read-only
protected
EventDispatcherInterface
$eventDispatcher
$globalVariableKey
The $GLOBALS key to be processed
protected
string
$globalVariableKey
$identifier
protected
string
$identifier
$label
protected
string
$label
Methods
__construct()
public
__construct(EventDispatcherInterface $eventDispatcher) : mixed
Parameters
- $eventDispatcher : EventDispatcherInterface
__invoke()
This method must exists since it's called from the provider registry to provide the tag attributes from the definition.
public
__invoke(array<string|int, mixed> $attributes) : $this
Note: We use __invoke so provider implementations are still able to use dependency injection via constructor arguments.
Parameters
- $attributes : array<string|int, mixed>
Return values
$thisgetConfiguration()
Returns the configuration, displayed in the module
public
getConfiguration() : array<string|int, mixed>
Return values
array<string|int, mixed>getIdentifier()
Returns the provider identifier
public
getIdentifier() : string
Return values
stringgetLabel()
Returns the providers' label (locallang or static text)
public
getLabel() : string
Return values
stringgetLanguageService()
protected
getLanguageService() : LanguageService