PHP Class Webiny\Component\Config\Drivers\AbstractDriver

Inheritance: use trait Webiny\Component\StdLib\StdLibTrait
Exibir arquivo Open project: Webiny/Framework Class Usage Examples

Protected Properties

Property Type Description
$resource Contains config data which needs to be parsed and converted to ConfigObject

Public Methods

Method Description
__construct ( null $resource = null ) Create config driver instance
getArray ( ) : array Get config data as array
getResource ( ) : mixed Get driver resource
getString ( ) : string Get formatted config data as string

Protected Methods

Method Description
getArrayInternal ( ) : array | ArrayObject Parse config resource and build config array
getStringInternal ( ) : string Get config data as string

Private Methods

Method Description
isFilepath ( $string )

Method Details

__construct() public method

Create config driver instance
public __construct ( null $resource = null )
$resource null Resource for driver

getArray() final public method

Get config data as array
final public getArray ( ) : array
return array Parsed resource data array

getArrayInternal() abstract protected method

Parse config resource and build config array
abstract protected getArrayInternal ( ) : array | ArrayObject
return array | Webiny\Component\StdLib\StdObject\ArrayObject\ArrayObject Config data

getResource() final public method

Get driver resource
final public getResource ( ) : mixed
return mixed Driver resource (can be: string, array, StringObject, ArrayObject)

getString() final public method

Get formatted config data as string
final public getString ( ) : string
return string Formatted config data

getStringInternal() abstract protected method

Get config data as string
abstract protected getStringInternal ( ) : string
return string Formatted config data

Property Details

$resource protected_oe property

Contains config data which needs to be parsed and converted to ConfigObject
protected $resource