package Default
inherited_from \Zend\Config\Writer\AbstractWriter

 Methods

Constructor

__construct(callable|string|null $yamlEncoder = null

Parameters

$yamlEncoder

callablestringnull

Get callback for decoding YAML

getYamlEncoder() : callable

Returns

callable

processConfig(): defined by AbstractWriter.

processConfig(array $config) : string
inherited_from \Zend\Config\Writer\AbstractWriter::processConfig()

Parameters

$config

array

Exceptions

\Zend\Config\Exception\RuntimeException

Returns

string

Set callback for decoding YAML

setYamlEncoder(callable $yamlEncoder) : \Zend\Config\Writer\Yaml

Parameters

$yamlEncoder

callable

the decoder to set

Exceptions

\Zend\Config\Exception\InvalidArgumentException

Returns

\Zend\Config\Writer\Yaml

toFile(): defined by Writer interface.

toFile(string $filename, mixed $config, boolean $exclusiveLock = true) : void
Inherited
see
inherited_from \Zend\Config\Writer\WriterInterface::toFile()

Parameters

$filename

string

$config

mixed

$exclusiveLock

boolean

Exceptions

\Zend\Config\Exception\InvalidArgumentException
\Zend\Config\Exception\RuntimeException

toString(): defined by Writer interface.

toString(mixed $config) : string
Inherited
see
inherited_from \Zend\Config\Writer\WriterInterface::toString()

Parameters

$config

mixed

Exceptions

\Zend\Config\Exception\InvalidArgumentException

Returns

string

processConfig()

processConfig(array $config) : string
Inherited

Parameters

$config

array

Returns

string

 Properties

 

YAML encoder callback

$yamlEncoder : callable

Default