PHP Class Kraken\Filesystem\FilesystemAdapterSimpleFactory

Inheritance: extends Kraken\Util\Factory\SimpleFactory, implements Kraken\Util\Factory\SimpleFactoryInterface
Show file Open project: kraken-php/framework

Protected Properties

Property Type Description
$defaults mixed[]

Public Methods

Method Description
__construct ( mixed[] $defaults = [] )
__destruct ( )

Protected Methods

Method Description
getClass ( ) : string Return class of adapter.
getClient ( ) : string Return client class for adapter creation if it needs one.
getDefaults ( ) : mixed[] Return array with default settings that needs to be passed to adapter.
onCreate ( mixed[] $config = [] ) : League\Flysystem\AdapterInterface Factory method for adapter.
param ( mixed[] $local, string $name ) : mixed | null Return param saved under specified key in local settings or fallbacks to global settings.
params ( mixed[] $local = [] ) : mixed[] Return given local settings merged onto global ones.

Method Details

__construct() public method

public __construct ( mixed[] $defaults = [] )
$defaults mixed[]

__destruct() public method

public __destruct ( )

getClass() abstract protected method

Return class of adapter.
abstract protected getClass ( ) : string
return string

getClient() abstract protected method

Return client class for adapter creation if it needs one.
abstract protected getClient ( ) : string
return string

getDefaults() abstract protected method

Return array with default settings that needs to be passed to adapter.
abstract protected getDefaults ( ) : mixed[]
return mixed[]

onCreate() abstract protected method

Factory method for adapter.
abstract protected onCreate ( mixed[] $config = [] ) : League\Flysystem\AdapterInterface
$config mixed[]
return League\Flysystem\AdapterInterface

param() protected method

Return param saved under specified key in local settings or fallbacks to global settings.
protected param ( mixed[] $local, string $name ) : mixed | null
$local mixed[]
$name string
return mixed | null

params() protected method

Return given local settings merged onto global ones.
protected params ( mixed[] $local = [] ) : mixed[]
$local mixed[]
return mixed[]

Property Details

$defaults protected property

protected mixed[] $defaults
return mixed[]