public function FileStorage::__construct in Service Container 7
Same name and namespace in other branches
- 7.2 lib/Drupal/Component/PhpStorage/FileStorage.php \Drupal\Component\PhpStorage\FileStorage::__construct()
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..
1 call to FileStorage::__construct()
- MTimeProtectedFastFileStorage::__construct in lib/
Drupal/ Component/ PhpStorage/ MTimeProtectedFastFileStorage.php - Constructs this MTimeProtectedFastFileStorage object.
1 method overrides FileStorage::__construct()
- MTimeProtectedFastFileStorage::__construct in lib/
Drupal/ Component/ PhpStorage/ MTimeProtectedFastFileStorage.php - Constructs this MTimeProtectedFastFileStorage object.
File
- lib/
Drupal/ Component/ PhpStorage/ FileStorage.php, line 31 - Contains \Drupal\Component\PhpStorage\FileStorage.
Class
- FileStorage
- Stores the code as regular PHP files.
Namespace
Drupal\Component\PhpStorageCode
public function __construct(array $configuration) {
$this->directory = $configuration['directory'] . '/' . $configuration['bin'];
}