‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Routing\Aspect\AspectFactory Class Reference

Public Member Functions

AspectInterface[] createAspects (array $aspects, SiteLanguage $language, Site $site)
 

Protected Member Functions

 create (string $type, array $settings)
 
 enrich (AspectInterface $aspect, SiteLanguage $language, Site $site)
 
 sortAspects (AspectInterface $first, AspectInterface $second)
 

Detailed Description

Factory for creating aspects

Definition at line 29 of file AspectFactory.php.

Member Function Documentation

◆ create()

TYPO3\CMS\Core\Routing\Aspect\AspectFactory::create ( string  $type,
array  $settings 
)
protected

Creates an aspect

Exceptions

Definition at line 56 of file AspectFactory.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Core\Routing\Aspect\AspectFactory\createAspects().

◆ createAspects()

AspectInterface [] TYPO3\CMS\Core\Routing\Aspect\AspectFactory::createAspects ( array  $aspects,
SiteLanguage  $language,
Site  $site 
)

Create aspects from the given settings.

Returns
AspectInterface[]

Definition at line 36 of file AspectFactory.php.

References TYPO3\CMS\Core\Routing\Aspect\AspectFactory\create(), and TYPO3\CMS\Core\Routing\Aspect\AspectFactory\enrich().

◆ enrich()

TYPO3\CMS\Core\Routing\Aspect\AspectFactory::enrich ( AspectInterface  $aspect,
SiteLanguage  $language,
Site  $site 
)
protected

Checks for the language aware trait, and adds the site language.

Definition at line 72 of file AspectFactory.php.

Referenced by TYPO3\CMS\Core\Routing\Aspect\AspectFactory\createAspects().

◆ sortAspects()

TYPO3\CMS\Core\Routing\Aspect\AspectFactory::sortAspects ( AspectInterface  $first,
AspectInterface  $second 
)
protected

Sorts aspects with putting persisted aspects to the end, thus non-persisted aspects can be executed earlier without invoking database.

Definition at line 88 of file AspectFactory.php.