You are here

private function HttpCache::record in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/HttpCache/HttpCache.php \Symfony\Component\HttpKernel\HttpCache\HttpCache::record()

Records that an event took place.

Parameters

Request $request A Request instance:

string $event The event name:

7 calls to HttpCache::record()
HttpCache::forward in vendor/symfony/http-kernel/HttpCache/HttpCache.php
Forwards the Request to the backend and returns the Response.
HttpCache::invalidate in vendor/symfony/http-kernel/HttpCache/HttpCache.php
Invalidates non-safe methods (like POST, PUT, and DELETE).
HttpCache::lock in vendor/symfony/http-kernel/HttpCache/HttpCache.php
Locks a Request during the call to the backend.
HttpCache::lookup in vendor/symfony/http-kernel/HttpCache/HttpCache.php
Lookups a Response from the cache for the given Request.
HttpCache::pass in vendor/symfony/http-kernel/HttpCache/HttpCache.php
Forwards the Request to the backend without storing the Response in the cache.

... See full list

File

vendor/symfony/http-kernel/HttpCache/HttpCache.php, line 698

Class

HttpCache
Cache provides HTTP caching.

Namespace

Symfony\Component\HttpKernel\HttpCache

Code

private function record(Request $request, $event) {
  $path = $request
    ->getPathInfo();
  if ($qs = $request
    ->getQueryString()) {
    $path .= '?' . $qs;
  }
  $this->traces[$request
    ->getMethod() . ' ' . $path][] = $event;
}