PhpStorageFactory
class PhpStorageFactory (View source)
Creates a php storage object
Methods
static PhpStorageInterface
get(string $name)
Instantiates a storage for generated PHP code.
Details
static PhpStorageInterface
get(string $name)
Instantiates a storage for generated PHP code.
By default, this returns an instance of the \Drupal\Component\PhpStorage\MTimeProtectedFileStorage class.
Classes implementing \Drupal\Component\PhpStorage\PhpStorageInterface can be registered for a specific bin or as a default implementation.