ReflectionService

class \TYPO3\CMS\Extbase\Reflection\ReflectionService

Reflection service for acquiring reflection based information.

Originally based on the TYPO3.Flow reflection service.

Attributes

#[Autoconfigure]
$public: true

Table of Contents

Properties

$classSchemata  : array
Local cache for Class schemata
$dataCache  : FrontendInterface
$dataCacheNeedsUpdate  : bool
Indicates whether the Reflection cache needs to be updated.

Methods

__construct()  : mixed
__destruct()  : mixed
__serialize()  : array
__unserialize()  : void
getClassSchema()  : ClassSchema
Returns the class schema for the given class
buildClassSchema()  : ClassSchema
Builds class schemata from classes annotated as entities or value objects

Properties

$classSchemata

Local cache for Class schemata

protected array $classSchemata = []

$dataCacheNeedsUpdate

Indicates whether the Reflection cache needs to be updated.

protected bool $dataCacheNeedsUpdate = false

This flag needs to be set as soon as new Reflection information was created.

Methods

__serialize()

public __serialize() : array

Return values

array

__unserialize()

public __unserialize(array $data) : void

Parameters

$data : array

buildClassSchema()

Builds class schemata from classes annotated as entities or value objects

protected buildClassSchema(string $className) : ClassSchema

Parameters

$className : string

Tags

throws
UnknownClassException

Return values

ClassSchema —

The class schema

On this page