SetRegistry

class \TYPO3\CMS\Core\Site\Set\SetRegistry

Attributes

#[Autoconfigure]
$public: true

Table of Contents

Properties

$cache  : PhpFrontend
$cacheIdentifier  : string
$dependencyOrderingService  : DependencyOrderingService
$invalidSets  : array<string, array{error: SetError, name: string, context: string}>
$logger  : LoggerInterface
$orderedSets  : array<int, SetDefinition>|null
$setCollector  : SetCollector

Methods

__construct()  : mixed
getAllSets()  : array<string, SetDefinition>
getInvalidSets()  : array<string, array{error: 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
checkMissingDependencies()  : string|null
computeOrderedSets()  : array<string, SetDefinition>
getFromCache()  : array<string, SetDefinition>
getOrderedSets()  : array<string, SetDefinition>
hasDependency()  : bool

Properties

$cacheIdentifier read-only

protected string $cacheIdentifier

Attributes

#[Autowire]
$expression: 'service("package-dependent-cache-identifier").withPrefix("Sets").toString()'

$invalidSets

protected array<string, array{error: SetError, name: string, context: string}> $invalidSets = null

Methods

getInvalidSets()

public getInvalidSets() : array<string, array{error: SetError, name: string, context: string}>

Return values

array<string, array{error: SetError, name: string, context: string}>

getSets()

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

bool

checkMissingDependencies()

protected checkMissingDependencies(array $sets, SetDefinition $set) : string|null

Parameters

$sets : array
$set : SetDefinition

Return values

string|null

hasDependency()

protected hasDependency(array $setNames, string $dependency) : bool

Parameters

$setNames : array
$dependency : string

Return values

bool
On this page