PHP Class FluidTYPO3\Flux\Package\FluxPackageFactory

Creates instances of FluxPackage based on provided extension name. Stores created instances in memory.
Show file Open project: fluidtypo3/flux Class Usage Examples

Protected Properties

Property Type Description
$overrides array | null
$packages FluidTYPO3\Flux\Package\FluxPackageInterface[]

Public Methods

Method Description
getPackage ( string $qualifiedExtensionName ) : FluidTYPO3\Flux\Package\FluxPackageInterface Returns the FluxPackage instance associated with and possibly existing in $qualifiedExtensionName.
getPackageWithFallback ( string $qualifiedExtensionName ) : FluidTYPO3\Flux\Package\FluxPackageInterface Returns the FluxPackage instance associated with and possibly existing in $qualifiedExtensionName, but falls back to returning the Flux root package if the requested package does not exist.

Protected Methods

Method Description
getTypoScriptOverrides ( string $qualifiedExtensionName ) : array

Method Details

getPackage() public static method

Returns the FluxPackage instance associated with and possibly existing in $qualifiedExtensionName.
public static getPackage ( string $qualifiedExtensionName ) : FluidTYPO3\Flux\Package\FluxPackageInterface
$qualifiedExtensionName string
return FluidTYPO3\Flux\Package\FluxPackageInterface

getPackageWithFallback() public static method

Returns the FluxPackage instance associated with and possibly existing in $qualifiedExtensionName, but falls back to returning the Flux root package if the requested package does not exist.
public static getPackageWithFallback ( string $qualifiedExtensionName ) : FluidTYPO3\Flux\Package\FluxPackageInterface
$qualifiedExtensionName string
return FluidTYPO3\Flux\Package\FluxPackageInterface

getTypoScriptOverrides() protected method

protected getTypoScriptOverrides ( string $qualifiedExtensionName ) : array
$qualifiedExtensionName string
return array

Property Details

$overrides protected static property

protected static array|NULL $overrides
return array | null

$packages protected static property

protected static FluxPackageInterface[],FluidTYPO3\Flux\Package $packages
return FluidTYPO3\Flux\Package\FluxPackageInterface[]