You are here

protected function PhpBackend::storage in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Cache/PhpBackend.php \Drupal\Core\Cache\PhpBackend::storage()

Gets the PHP code storage object to use.

Return value

\Drupal\Component\PhpStorage\PhpStorageInterface

File

core/lib/Drupal/Core/Cache/PhpBackend.php, line 256
Contains \Drupal\Core\Cache\PhpBackend.

Class

PhpBackend
Defines a PHP cache implementation.

Namespace

Drupal\Core\Cache

Code

protected function storage() {
  if (!isset($this->storage)) {
    $this->storage = PhpStorageFactory::get($this->bin);
  }
  return $this->storage;
}