Constructs this FileStorage object.
Parameters
array $configuration:
An associative array, containing at least these two keys:
- directory: The directory where the files should be stored.
- bin: The storage bin. Multiple storage objects can be instantiated with
the same configuration, but for different bins..
File
- drupal/core/lib/Drupal/Component/PhpStorage/FileStorage.php, line 31
- Definition of Drupal\Component\PhpStorage\FileStorage.
Class
- FileStorage
- Stores the code as regular PHP files.
Namespace
Drupal\Component\PhpStorage
Code
public function __construct(array $configuration) {
$this->directory = $configuration['directory'] . '/' . $configuration['bin'];
}