AspectFactory

class \TYPO3\CMS\Core\Routing\Aspect\AspectFactory

Factory for creating aspects

Table of Contents

Properties

$availableAspects  : array
$context  : Context

Methods

__construct()  : mixed
AspectFactory constructor.
createAspects()  : AspectInterface[]
Create aspects from the given settings.
create()  : AspectInterface
Creates an aspect
enrich()  : AspectInterface
Checks for the language aware trait, and adds the site language.
sortAspects()  : int
Sorts aspects with putting persisted aspects to the end, thus non-persisted aspects can be executed earlier without invoking database.

Properties

$availableAspects

protected array $availableAspects

Methods

__construct()

AspectFactory constructor.

public __construct([Context|null $context = null ]) : mixed

Parameters

$context : Context|null = null

create()

Creates an aspect

protected create(string $type, array $settings) : AspectInterface

Parameters

$type : string
$settings : array

Tags

throws
InvalidArgumentException
throws
OutOfRangeException

Return values

AspectInterface
On this page