PHP Класс Neos\Flow\Mvc\Routing\RouterCachingService

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

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

Свойство Тип Описание
$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