PHP 클래스 Neos\Flow\Mvc\Routing\RouterCachingService

파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
$persistenceManager Neos\Flow\Persistence\PersistenceManagerInterface
$resolveCache Neos\Cache\Frontend\StringFrontend
$routeCache Neos\Cache\Frontend\VariableFrontend
$routingSettings array
$systemLogger Neos\Flow\Log\SystemLoggerInterface

공개 메소드들

메소드 설명
flushCaches ( ) : void Flushes 'route' and 'resolve' caches.
flushCachesByTag ( string $tag ) : void Flushes 'findMatchResults' and 'resolve' caches for the given $tag
flushCachesForUriPath ( string $uriPath ) : void Flushes 'findMatchResults' caches that are tagged with the given $uriPath
getCachedMatchResults ( Request $httpRequest ) : array | boolean Checks the cache for the route path given in the Request and returns the result
getCachedResolvedUriPath ( array $routeValues ) : string | boolean Checks the cache for the given route values and returns the cached resolvedUriPath if a cache entry is found
initializeObject ( ) : void
storeMatchResults ( Request $httpRequest, array $matchResults ) : void Stores the $matchResults in the cache
storeResolvedUriPath ( string $uriPath, array $routeValues ) : void Stores the $uriPath in the cache together with the $routeValues

보호된 메소드들

메소드 설명
buildResolveCacheIdentifier ( array $routeValues ) : string Generates the Resolve cache identifier for the given Request
buildRouteCacheIdentifier ( Request $httpRequest ) : string Generates the Matching cache identifier for the given Request
containsObject ( mixed $subject ) : boolean Checks if the given subject contains an object
convertObjectsToHashes ( array $routeValues ) : array Recursively converts objects in an array to their identifiers
extractUuids ( array $values ) : array Helper method to generate tags by taking all UUIDs contained in the given $routeValues or $matchResults
generateRouteTags ( string $uriPath, array $routeValues ) : array

메소드 상세

buildResolveCacheIdentifier() 보호된 메소드

Generates the Resolve cache identifier for the given Request
protected buildResolveCacheIdentifier ( array $routeValues ) : string
$routeValues array
리턴 string

buildRouteCacheIdentifier() 보호된 메소드

Generates the Matching cache identifier for the given Request
protected buildRouteCacheIdentifier ( Request $httpRequest ) : string
$httpRequest Neos\Flow\Http\Request
리턴 string

containsObject() 보호된 메소드

Checks if the given subject contains an object
protected containsObject ( mixed $subject ) : boolean
$subject mixed
리턴 boolean TRUE if $subject contains an object, otherwise FALSE

convertObjectsToHashes() 보호된 메소드

Recursively converts objects in an array to their identifiers
protected convertObjectsToHashes ( array $routeValues ) : array
$routeValues array the array to be processed
리턴 array the modified array or NULL if $routeValues contain an object and its identifier could not be determined

extractUuids() 보호된 메소드

Helper method to generate tags by taking all UUIDs contained in the given $routeValues or $matchResults
protected extractUuids ( array $values ) : array
$values array
리턴 array

flushCaches() 공개 메소드

Flushes 'route' and 'resolve' caches.
public flushCaches ( ) : void
리턴 void

flushCachesByTag() 공개 메소드

Flushes 'findMatchResults' and 'resolve' caches for the given $tag
public flushCachesByTag ( string $tag ) : void
$tag string
리턴 void

flushCachesForUriPath() 공개 메소드

Flushes 'findMatchResults' caches that are tagged with the given $uriPath
public flushCachesForUriPath ( string $uriPath ) : void
$uriPath string
리턴 void

generateRouteTags() 보호된 메소드

protected generateRouteTags ( string $uriPath, array $routeValues ) : array
$uriPath string
$routeValues array
리턴 array

getCachedMatchResults() 공개 메소드

Checks the cache for the route path given in the Request and returns the result
public getCachedMatchResults ( Request $httpRequest ) : array | boolean
$httpRequest Neos\Flow\Http\Request
리턴 array | boolean the cached route values or FALSE if no cache entry was found

getCachedResolvedUriPath() 공개 메소드

Checks the cache for the given route values and returns the cached resolvedUriPath if a cache entry is found
public getCachedResolvedUriPath ( array $routeValues ) : string | boolean
$routeValues array
리턴 string | boolean the cached request path or FALSE if no cache entry was found

initializeObject() 공개 메소드

public initializeObject ( ) : void
리턴 void

storeMatchResults() 공개 메소드

Stores the $matchResults in the cache
public storeMatchResults ( Request $httpRequest, array $matchResults ) : void
$httpRequest Neos\Flow\Http\Request
$matchResults array
리턴 void

storeResolvedUriPath() 공개 메소드

Stores the $uriPath in the cache together with the $routeValues
public storeResolvedUriPath ( string $uriPath, array $routeValues ) : void
$uriPath string
$routeValues array
리턴 void

프로퍼티 상세

$objectManager 보호되어 있는 프로퍼티

protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager
리턴 Neos\Flow\ObjectManagement\ObjectManagerInterface

$persistenceManager 보호되어 있는 프로퍼티

protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager
리턴 Neos\Flow\Persistence\PersistenceManagerInterface

$resolveCache 보호되어 있는 프로퍼티

protected StringFrontend,Neos\Cache\Frontend $resolveCache
리턴 Neos\Cache\Frontend\StringFrontend

$routeCache 보호되어 있는 프로퍼티

protected VariableFrontend,Neos\Cache\Frontend $routeCache
리턴 Neos\Cache\Frontend\VariableFrontend

$routingSettings 보호되어 있는 프로퍼티

protected array $routingSettings
리턴 array

$systemLogger 보호되어 있는 프로퍼티

protected SystemLoggerInterface,Neos\Flow\Log $systemLogger
리턴 Neos\Flow\Log\SystemLoggerInterface