ReflectionService
class \
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
= []
$dataCache
protected
FrontendInterface
$dataCache
Attributes
- #[Autowire]
- $service: 'cache.extbase'
$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
__construct()
public
__construct(FrontendInterface $dataCache, string $cacheIdentifier) : mixed
Parameters
- $dataCache : FrontendInterface
- $cacheIdentifier : string
__destruct()
public
__destruct() : mixed
__serialize()
public
__serialize() : array
Internal
Return values
array__unserialize()
public
__unserialize(array $data) : void
Parameters
- $data : array
Internal
getClassSchema()
Returns the class schema for the given class
public
getClassSchema(mixed $classNameOrObject) : ClassSchema
Parameters
- $classNameOrObject : mixed
-
The class name or an object
Tags
Return values
ClassSchemabuildClassSchema()
Builds class schemata from classes annotated as entities or value objects
protected
buildClassSchema(string $className) : ClassSchema
Parameters
- $className : string
Tags
Return values
ClassSchema —The class schema