Property | Type | Description | |
---|---|---|---|
$blacklistedSubPackages | array | Hardcoded list of Flow sub packages which must be immune proxying for security, technical or conceptual reasons. | |
$blacklistedSubPackagesLength | integer | See above. | |
$classesCache | |||
$objectManager | |||
$proxyClasses | array | ||
$reflectionService | |||
$settings | array | ||
$storedProxyClasses | array | The final map of proxy classes that end up in the cache. |
Method | Description | |
---|---|---|
__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 ) : |
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 ( |
Injects the cache for storing the renamed original classes and proxy classes | |
injectObjectManager ( |
||
injectReflectionService ( |
||
injectSettings ( array $settings ) : void | Injects the Flow settings | |
renderAnnotation ( Doctrine\Common\Annotations\Annotation $annotation ) : string | Render the source (string) form of an Annotation instance. |
Method | Description | |
---|---|---|
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 (" |
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 |
return | void |
public getProxyClass ( string $fullClassName ) : |
||
$fullClassName | string | Name of the original class |
return |
public hasCacheEntryForClass ( string $fullClassName ) : boolean | ||
$fullClassName | string | Name of the original class |
return | boolean | TRUE if a cache entry exists |
public injectClassesCache ( |
||
$classesCache | ||
return | void |
public injectObjectManager ( |
||
$objectManager | ||
return | void |
public injectReflectionService ( |
||
$reflectionService | ||
return | void |
public injectSettings ( array $settings ) : void | ||
$settings | array | The settings |
return | void |
public static renderAnnotation ( Doctrine\Common\Annotations\Annotation $annotation ) : string | ||
$annotation | Doctrine\Common\Annotations\Annotation | |
return | string |
protected static renderOptionArrayValueAsString ( array $optionValue ) : string | ||
$optionValue | array | |
return | string |
protected stripOpeningPhpTag ( string $classCode ) : string | ||
$classCode | string | |
return | string | the original class code without opening php tag |
protected array $blacklistedSubPackages | ||
return | array |
protected int $blacklistedSubPackagesLength | ||
return | integer |
protected PhpFrontend,Neos\Cache\Frontend $classesCache | ||
return |
protected CompileTimeObjectManager,Neos\Flow\ObjectManagement $objectManager | ||
return |
protected ReflectionService,Neos\Flow\Reflection $reflectionService | ||
return |
protected array $storedProxyClasses | ||
return | array |