2017 © Pedro Peláez
 

library flysystem-passthrough-adapter

A simple adapter that wraps another adapter.

image

twistor/flysystem-passthrough-adapter

A simple adapter that wraps another adapter.

  • Wednesday, December 9, 2015
  • by twistor
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3,910 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 19 % Grown

The README.md

Flysystem passthrough adapter

Author Build Status Coverage Status Quality Score Software License Packagist Version, (*1)

Installation

composer require twistor/flysystem-passthrough-adapter

Usage

This package doesn't do anything on its own. It provides a base class that simplifies the creation of adapters that wrap other adapters., (*2)

To use it, subclass \Twistor\Flysystem\PassthroughAdapter and override any methods., (*3)

```php <?php, (*4)

use League\Flysystem\AdapterInterface; use Twistor\Flysystem\PassthroughAdapter;, (*5)

class UppercaseAdapter extends PassthroughAdapter { /** * Constructs an UppercaseAdapter. * * @param AdapterInterface $adapter */ public function __construct(AdapterInterface $adapter) { parent::__construct($adapter); }, (*6)

/**
 * @inheritdoc
 */
public function read($path)
{
    $result = $this->getAdapter()->read($path);

    if ($result === false) {
        return false;
    }

    $result['contents'] = strtoupper($result['contents']);

    return $result;
}

}, (*7)

The Versions

09/12 2015

dev-master

9999999-dev https://github.com/twistor/flysystem-passthrough-adapter

A simple adapter that wraps another adapter.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Chris Leppanen

league

09/12 2015

v1.0.0

1.0.0.0 https://github.com/twistor/flysystem-passthrough-adapter

A simple adapter that wraps another adapter.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Chris Leppanen

league