SetRegistry
Attributes
- #[Autoconfigure]
- $public: true
Table of Contents
Properties
- $cache : PhpFrontend
- $cacheIdentifier : string
- $dependencyOrderingService : DependencyOrderingService
- $invalidSets : array<string, SetError, name: string, context: string}>
- $logger : LoggerInterface
- $orderedSets : array<int, SetDefinition>|null
- $setCollector : SetCollector
Methods
- __construct() : mixed
- getAllSets() : array<string, SetDefinition>
- getInvalidSets() : array<string, SetError, name: string, context: string}>
- getSet() : SetDefinition|null
- getSets() : array<int, SetDefinition>
- Retrieve list of ordered sets, matched by $setNames, including their dependencies (recursive)
- hasSet() : bool
- warmupCaches() : void
- computeOrderedSets() : array<string, SetDefinition>
- getFromCache() : array<string, SetDefinition>
- getOrderedSets() : array<string, SetDefinition>
- hasDependency() : bool
Properties
$cache read-only
protected
PhpFrontend
$cache
Attributes
- #[Autowire]
- $service: 'cache.core'
$cacheIdentifier read-only
protected
string
$cacheIdentifier
Attributes
- #[Autowire]
- $expression: 'service("package-dependent-cache-identifier").withPrefix("Sets").toString()'
$dependencyOrderingService
protected
DependencyOrderingService
$dependencyOrderingService
$invalidSets
protected
array<string, SetError, name: string, context: string}>
$invalidSets
= null
$logger
protected
LoggerInterface
$logger
$orderedSets
protected
array<int, SetDefinition>|null
$orderedSets
= null
$setCollector
protected
SetCollector
$setCollector
Attributes
- #[Autowire]
- $lazy: true
Methods
__construct()
public
__construct(DependencyOrderingService $dependencyOrderingService, string $cacheIdentifier, PhpFrontend $cache, SetCollector $setCollector, LoggerInterface $logger) : mixed
Parameters
- $dependencyOrderingService : DependencyOrderingService
- $cacheIdentifier : string
- $cache : PhpFrontend
- $setCollector : SetCollector
- $logger : LoggerInterface
getAllSets()
public
getAllSets() : array<string, SetDefinition>
Return values
array<string, SetDefinition>getInvalidSets()
public
getInvalidSets() : array<string, SetError, name: string, context: string}>
Return values
array<string, SetError, name: string, context: string}>getSet()
public
getSet(string $setName) : SetDefinition|null
Parameters
- $setName : string
Return values
SetDefinition|nullgetSets()
Retrieve list of ordered sets, matched by $setNames, including their dependencies (recursive)
public
getSets(string ...$setNames) : array<int, SetDefinition>
Parameters
- $setNames : string
Return values
array<int, SetDefinition>hasSet()
public
hasSet(string $setName) : bool
Parameters
- $setName : string
Return values
boolwarmupCaches()
public
warmupCaches(CacheWarmupEvent $event) : void
Parameters
- $event : CacheWarmupEvent
Attributes
- #[AsEventListener]
- 'typo3-core/set-registry'
computeOrderedSets()
protected
computeOrderedSets() : array<string, SetDefinition>
Return values
array<string, SetDefinition>getFromCache()
protected
getFromCache() : array<string, SetDefinition>
Return values
array<string, SetDefinition>getOrderedSets()
protected
getOrderedSets() : array<string, SetDefinition>
Return values
array<string, SetDefinition>hasDependency()
protected
hasDependency(array<string|int, mixed> $setNames, string $dependency) : bool
Parameters
- $setNames : array<string|int, mixed>
- $dependency : string