FileStorage::__construct
public function FileStorage::__construct
public FileStorage::__construct(array $configuration)
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
- core/lib/Drupal/Component/PhpStorage/FileStorage.php, line 26
Class
- FileStorage
- Stores the code as regular PHP files.
Namespace
Drupal\Component\PhpStorageCode
public function __construct(array $configuration) { $this->directory = $configuration['directory'] . '/' . $configuration['bin']; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!PhpStorage!FileStorage.php/function/FileStorage::__construct/8.1.x