DriverRegistry implements SingletonInterface
Registry for driver classes.
Table of Contents
Interfaces
- SingletonInterface
- "empty" interface for singletons (marker interface pattern)
Properties
- $driverConfigurations : array<string|int, mixed>
- $drivers : array<string|int, mixed>
Methods
- __construct() : mixed
- Creates this object by detecting all available drivers registered in $TYPO3_CONF_VARS.
- addDriversToTCA() : mixed
- Adds the TCA information so the registered drivers can be selected when creating a sys_file_storage in the TYPO3 Backend.
- driverExists() : bool
- Checks if the given driver exists
- getDriverClass() : string
- Returns a class name for a given class name or short name.
- registerDriverClass() : bool
- Registers a driver class with an optional short name.
Properties
$driverConfigurations
        protected
            array<string|int, mixed>
    $driverConfigurations
     = []
    
    
    
    
    
$drivers
        protected
            array<string|int, mixed>
    $drivers
     = []
    
    
    
    
    
Methods
__construct()
Creates this object by detecting all available drivers registered in $TYPO3_CONF_VARS.
    public
                    __construct() : mixed
    addDriversToTCA()
Adds the TCA information so the registered drivers can be selected when creating a sys_file_storage in the TYPO3 Backend.
    public
                    addDriversToTCA() : mixed
    driverExists()
Checks if the given driver exists
    public
                    driverExists(string $shortName) : bool
    Parameters
- $shortName : string
- 
                    Name of the driver 
Return values
bool —TRUE if the driver exists, FALSE otherwise
getDriverClass()
Returns a class name for a given class name or short name.
    public
                    getDriverClass(string $shortName) : string
    Parameters
- $shortName : string
Tags
Return values
string —The class name
registerDriverClass()
Registers a driver class with an optional short name.
    public
                    registerDriverClass(string $className[, string|null $shortName = null ][, string $label = null ][, string $flexFormDataStructurePathAndFilename = null ]) : bool
    Parameters
- $className : string
- $shortName : string|null = null
- $label : string = null
- $flexFormDataStructurePathAndFilename : string = null
Tags
Return values
bool —TRUE if registering succeeded