directory = $configuration['directory'] . '/' . $configuration['bin']; } /** * {@inheritdoc} */ public function exists($name) { return file_exists($this->getFullPath($name)); } /** * {@inheritdoc} */ public function load($name) { // The FALSE returned on failure is enough for the caller to handle this, // we do not want a warning too. return (@include_once $this->getFullPath($name)) !== FALSE; } /** * {@inheritdoc} */ public function save($name, $code) { return FALSE; } /** * {@inheritdoc} */ public function delete($name) { return FALSE; } /** * {@inheritdoc} */ public function getFullPath($name) { return $this->directory . '/' . $name; } /** * {@inheritdoc} */ public function writeable() { return FALSE; } /** * {@inheritdoc} */ public function deleteAll() { return FALSE; } /** * {@inheritdoc} */ public function listAll() { $names = []; if (file_exists($this->directory)) { foreach (new \DirectoryIterator($this->directory) as $fileinfo) { if (!$fileinfo->isDot()) { $name = $fileinfo->getFilename(); if ($name != '.htaccess') { $names[] = $name; } } } } return $names; } /** * {@inheritdoc} */ public function garbageCollection() { } }