PHP Класс Neos\Flow\ObjectManagement\Proxy\Compiler

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$blacklistedSubPackages array Hardcoded list of Flow sub packages which must be immune proxying for security, technical or conceptual reasons.
$blacklistedSubPackagesLength integer See above.
$classesCache Neos\Cache\Frontend\PhpFrontend
$objectManager Neos\Flow\ObjectManagement\CompileTimeObjectManager
$proxyClasses array
$reflectionService Neos\Flow\Reflection\ReflectionService
$settings array
$storedProxyClasses array The final map of proxy classes that end up in the cache.

Открытые методы

Метод Описание
__construct ( ) Compiler constructor.
compile ( ) : integer Compiles the configured proxy classes and methods as static PHP code and stores it in the proxy class code cache.
getProxyClass ( string $fullClassName ) : ProxyClass | boolean Returns a proxy class object for the specified original class.
getStoredProxyClassMap ( ) : string
hasCacheEntryForClass ( string $fullClassName ) : boolean Checks if the specified class still exists in the code cache. If that is the case, it means that obviously the proxy class doesn't have to be rebuilt because otherwise the cache would have been flushed by the file monitor or some other mechanism.
injectClassesCache ( PhpFrontend $classesCache ) : void Injects the cache for storing the renamed original classes and proxy classes
injectObjectManager ( CompileTimeObjectManager $objectManager ) : void
injectReflectionService ( ReflectionService $reflectionService ) : void
injectSettings ( array $settings ) : void Injects the Flow settings
renderAnnotation ( Doctrine\Common\Annotations\Annotation $annotation ) : string Render the source (string) form of an Annotation instance.

Защищенные методы

Метод Описание
cacheOriginalClassFileAndProxyCode ( string $className, string $pathAndFilename, string $proxyClassCode ) : void Reads the specified class file, appends ORIGINAL_CLASSNAME_SUFFIX to its class name and stores the result in the proxy classes cache.
renderOptionArrayValueAsString ( array $optionValue ) : string Render an array value as string for an annotation.
stripOpeningPhpTag ( string $classCode ) : string Removes the first opening php tag ("

Описание методов

__construct() публичный Метод

Compiler constructor.
public __construct ( )

cacheOriginalClassFileAndProxyCode() защищенный Метод

Reads the specified class file, appends ORIGINAL_CLASSNAME_SUFFIX to its class name and stores the result in the proxy classes cache.
protected cacheOriginalClassFileAndProxyCode ( string $className, string $pathAndFilename, string $proxyClassCode ) : void
$className string Short class name of the class to copy
$pathAndFilename string Full path and filename of the original class file
$proxyClassCode string The code that makes up the proxy class
Результат void

compile() публичный Метод

Also builds the static object container which acts as a registry for non-prototype objects during runtime.
public compile ( ) : integer
Результат integer Number of classes which have been compiled

getProxyClass() публичный Метод

If no such proxy class has been created yet by this renderer, this function will create one and register it for later use. If the class is not proxable, FALSE will be returned
public getProxyClass ( string $fullClassName ) : ProxyClass | boolean
$fullClassName string Name of the original class
Результат ProxyClass | boolean

getStoredProxyClassMap() публичный Метод

public getStoredProxyClassMap ( ) : string
Результат string

hasCacheEntryForClass() публичный Метод

Checks if the specified class still exists in the code cache. If that is the case, it means that obviously the proxy class doesn't have to be rebuilt because otherwise the cache would have been flushed by the file monitor or some other mechanism.
public hasCacheEntryForClass ( string $fullClassName ) : boolean
$fullClassName string Name of the original class
Результат boolean TRUE if a cache entry exists

injectClassesCache() публичный Метод

Injects the cache for storing the renamed original classes and proxy classes
public injectClassesCache ( PhpFrontend $classesCache ) : void
$classesCache Neos\Cache\Frontend\PhpFrontend
Результат void

injectObjectManager() публичный Метод

public injectObjectManager ( CompileTimeObjectManager $objectManager ) : void
$objectManager Neos\Flow\ObjectManagement\CompileTimeObjectManager
Результат void

injectReflectionService() публичный Метод

public injectReflectionService ( ReflectionService $reflectionService ) : void
$reflectionService Neos\Flow\Reflection\ReflectionService
Результат void

injectSettings() публичный Метод

Injects the Flow settings
public injectSettings ( array $settings ) : void
$settings array The settings
Результат void

renderAnnotation() публичный статический Метод

Render the source (string) form of an Annotation instance.
public static renderAnnotation ( Doctrine\Common\Annotations\Annotation $annotation ) : string
$annotation Doctrine\Common\Annotations\Annotation
Результат string

renderOptionArrayValueAsString() защищенный статический Метод

Render an array value as string for an annotation.
protected static renderOptionArrayValueAsString ( array $optionValue ) : string
$optionValue array
Результат string

stripOpeningPhpTag() защищенный Метод

Removes the first opening php tag ("
protected stripOpeningPhpTag ( string $classCode ) : string
$classCode string
Результат string the original class code without opening php tag

Описание свойств

$blacklistedSubPackages защищенное свойство

Hardcoded list of Flow sub packages which must be immune proxying for security, technical or conceptual reasons.
protected array $blacklistedSubPackages
Результат array

$blacklistedSubPackagesLength защищенное свойство

See above.
protected int $blacklistedSubPackagesLength
Результат integer

$classesCache защищенное свойство

protected PhpFrontend,Neos\Cache\Frontend $classesCache
Результат Neos\Cache\Frontend\PhpFrontend

$objectManager защищенное свойство

protected CompileTimeObjectManager,Neos\Flow\ObjectManagement $objectManager
Результат Neos\Flow\ObjectManagement\CompileTimeObjectManager

$proxyClasses защищенное свойство

protected array $proxyClasses
Результат array

$reflectionService защищенное свойство

protected ReflectionService,Neos\Flow\Reflection $reflectionService
Результат Neos\Flow\Reflection\ReflectionService

$settings защищенное свойство

protected array $settings
Результат array

$storedProxyClasses защищенное свойство

The final map of proxy classes that end up in the cache.
protected array $storedProxyClasses
Результат array