MissingAdapter.php in Flysystem 7
File
src/Flysystem/Adapter/MissingAdapter.php
View source
<?php
namespace Drupal\flysystem\Flysystem\Adapter;
use League\Flysystem\AdapterInterface;
use League\Flysystem\Config;
class MissingAdapter implements AdapterInterface {
public function copy($path, $newpath) {
return FALSE;
}
public function createDir($dirname, Config $config) {
return FALSE;
}
public function delete($path) {
return FALSE;
}
public function deleteDir($dirname) {
return FALSE;
}
public function listContents($directory = '', $recursive = FALSE) {
return array();
}
public function getMetadata($path) {
return FALSE;
}
public function getMimetype($path) {
return FALSE;
}
public function getSize($path) {
return FALSE;
}
public function getTimestamp($path) {
return FALSE;
}
public function getVisibility($path) {
return FALSE;
}
public function has($path) {
return FALSE;
}
public function setVisibility($path, $visibility) {
return FALSE;
}
public function update($path, $contents, Config $config) {
return FALSE;
}
public function updateStream($path, $resource, Config $config) {
return FALSE;
}
public function read($path) {
return FALSE;
}
public function readStream($path) {
return FALSE;
}
public function rename($path, $newpath) {
return FALSE;
}
public function write($path, $contents, Config $config) {
return FALSE;
}
public function writeStream($path, $resource, Config $config) {
return FALSE;
}
}
Classes
Name |
Description |
MissingAdapter |
An adapter used when a plugin is missing. It fails at everything. |