You are here

class MissingAdapter in Flysystem 8

Same name and namespace in other branches
  1. 7 src/Flysystem/Adapter/MissingAdapter.php \Drupal\flysystem\Flysystem\Adapter\MissingAdapter
  2. 3.x src/Flysystem/Adapter/MissingAdapter.php \Drupal\flysystem\Flysystem\Adapter\MissingAdapter
  3. 2.0.x src/Flysystem/Adapter/MissingAdapter.php \Drupal\flysystem\Flysystem\Adapter\MissingAdapter
  4. 3.0.x src/Flysystem/Adapter/MissingAdapter.php \Drupal\flysystem\Flysystem\Adapter\MissingAdapter

An adapter used when a plugin is missing. It fails at everything.

Hierarchy

  • class \Drupal\flysystem\Flysystem\Adapter\MissingAdapter implements \League\Flysystem\AdapterInterface

Expanded class hierarchy of MissingAdapter

9 files declare their use of MissingAdapter
FlysystemBridgeTest.php in tests/src/Unit/FlysystemBridgeTest.php
FlysystemFactoryTest.php in tests/src/Unit/FlysystemFactoryTest.php
Ftp.php in src/Flysystem/Ftp.php
FtpTest.php in tests/src/Unit/Flysystem/FtpTest.php
Local.php in src/Flysystem/Local.php

... See full list

File

src/Flysystem/Adapter/MissingAdapter.php, line 11

Namespace

Drupal\flysystem\Flysystem\Adapter
View source
class MissingAdapter implements AdapterInterface {

  /**
   * {@inheritdoc}
   */
  public function copy($path, $newpath) {
    return FALSE;
  }

  /**
   * {@inheritdoc}
   */
  public function createDir($dirname, Config $config) {
    return FALSE;
  }

  /**
   * {@inheritdoc}
   */
  public function delete($path) {
    return FALSE;
  }

  /**
   * {@inheritdoc}
   */
  public function deleteDir($dirname) {
    return FALSE;
  }

  /**
   * {@inheritdoc}
   */
  public function listContents($directory = '', $recursive = FALSE) {
    return [];
  }

  /**
   * {@inheritdoc}
   */
  public function getMetadata($path) {
    return FALSE;
  }

  /**
   * {@inheritdoc}
   */
  public function getMimetype($path) {
    return FALSE;
  }

  /**
   * {@inheritdoc}
   */
  public function getSize($path) {
    return FALSE;
  }

  /**
   * {@inheritdoc}
   */
  public function getTimestamp($path) {
    return FALSE;
  }

  /**
   * {@inheritdoc}
   */
  public function getVisibility($path) {
    return FALSE;
  }

  /**
   * {@inheritdoc}
   */
  public function has($path) {
    return FALSE;
  }

  /**
   * {@inheritdoc}
   */
  public function setVisibility($path, $visibility) {
    return FALSE;
  }

  /**
   * {@inheritdoc}
   */
  public function update($path, $contents, Config $config) {
    return FALSE;
  }

  /**
   * {@inheritdoc}
   */
  public function updateStream($path, $resource, Config $config) {
    return FALSE;
  }

  /**
   * {@inheritdoc}
   */
  public function read($path) {
    return FALSE;
  }

  /**
   * {@inheritdoc}
   */
  public function readStream($path) {
    return FALSE;
  }

  /**
   * {@inheritdoc}
   */
  public function rename($path, $newpath) {
    return FALSE;
  }

  /**
   * {@inheritdoc}
   */
  public function write($path, $contents, Config $config) {
    return FALSE;
  }

  /**
   * {@inheritdoc}
   */
  public function writeStream($path, $resource, Config $config) {
    return FALSE;
  }

}

Members