public function MTimeProtectedFastFileStorage::__construct
public MTimeProtectedFastFileStorage::__construct(array $configuration)
Constructs this MTimeProtectedFastFileStorage object.
Parameters
array $configuration: An associated array, containing at least these keys (the rest are ignored):
- directory: The directory where the files should be stored.
- secret: A cryptographically hard to guess secret string.
-bin. The storage bin. Multiple storage objects can be instantiated with the same configuration, but for different bins.
Overrides FileStorage::__construct
File
- core/lib/Drupal/Component/PhpStorage/MTimeProtectedFastFileStorage.php, line 55
Class
- MTimeProtectedFastFileStorage
- Stores PHP code in files with securely hashed names.
Namespace
Drupal\Component\PhpStorageCode
public function __construct(array $configuration) { parent::__construct($configuration); $this->secret = $configuration['secret']; }
© 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!MTimeProtectedFastFileStorage.php/function/MTimeProtectedFastFileStorage::__construct/8.1.x