ReflectionService implements SingletonInterface

Reflection service for acquiring reflection based information.

Originally based on the TYPO3.Flow reflection service.

Table of Contents

Interfaces

SingletonInterface
"empty" interface for singletons (marker interface pattern)

Properties

$classSchemata  : array<string|int, mixed>
Local cache for Class schemata
$dataCache  : FrontendInterface
$dataCacheNeedsUpdate  : bool
Indicates whether the Reflection cache needs to be updated.

Methods

__construct()  : mixed
__destruct()  : mixed
__sleep()  : array<string|int, mixed>
__wakeup()  : 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<string|int, mixed> $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

__sleep()

public __sleep() : array<string|int, mixed>
Internal
Return values
array<string|int, mixed>

__wakeup()

public __wakeup() : void
Internal

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

Search results