PHP Class Neos\Flow\Mvc\Routing\RouterCachingService

Afficher le fichier Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$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

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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

Method Details

buildResolveCacheIdentifier() protected méthode

Generates the Resolve cache identifier for the given Request
protected buildResolveCacheIdentifier ( array $routeValues ) : string
$routeValues array
Résultat string

buildRouteCacheIdentifier() protected méthode

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

containsObject() protected méthode

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

convertObjectsToHashes() protected méthode

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

extractUuids() protected méthode

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

flushCaches() public méthode

Flushes 'route' and 'resolve' caches.
public flushCaches ( ) : void
Résultat void

flushCachesByTag() public méthode

Flushes 'findMatchResults' and 'resolve' caches for the given $tag
public flushCachesByTag ( string $tag ) : void
$tag string
Résultat void

flushCachesForUriPath() public méthode

Flushes 'findMatchResults' caches that are tagged with the given $uriPath
public flushCachesForUriPath ( string $uriPath ) : void
$uriPath string
Résultat void

generateRouteTags() protected méthode

protected generateRouteTags ( string $uriPath, array $routeValues ) : array
$uriPath string
$routeValues array
Résultat array

getCachedMatchResults() public méthode

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
Résultat array | boolean the cached route values or FALSE if no cache entry was found

getCachedResolvedUriPath() public méthode

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
Résultat string | boolean the cached request path or FALSE if no cache entry was found

initializeObject() public méthode

public initializeObject ( ) : void
Résultat void

storeMatchResults() public méthode

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

storeResolvedUriPath() public méthode

Stores the $uriPath in the cache together with the $routeValues
public storeResolvedUriPath ( string $uriPath, array $routeValues ) : void
$uriPath string
$routeValues array
Résultat void

Property Details

$objectManager protected_oe property

protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager
Résultat Neos\Flow\ObjectManagement\ObjectManagerInterface

$persistenceManager protected_oe property

protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager
Résultat Neos\Flow\Persistence\PersistenceManagerInterface

$resolveCache protected_oe property

protected StringFrontend,Neos\Cache\Frontend $resolveCache
Résultat Neos\Cache\Frontend\StringFrontend

$routeCache protected_oe property

protected VariableFrontend,Neos\Cache\Frontend $routeCache
Résultat Neos\Cache\Frontend\VariableFrontend

$routingSettings protected_oe property

protected array $routingSettings
Résultat array

$systemLogger protected_oe property

protected SystemLoggerInterface,Neos\Flow\Log $systemLogger
Résultat Neos\Flow\Log\SystemLoggerInterface