category Zend
package Zend_Config
subpackage Writer

 Methods

Constructor

__construct(\Zend\Config\Writer\callable | string | null $yamlEncoder) 

Parameters

$yamlEncoder

\Zend\Config\Writer\callablestringnull

Get callback for decoding YAML

getYamlEncoder() : \Zend\Config\Writer\callable

Returns

\Zend\Config\Writer\callable

processConfig(): defined by AbstractWriter.

processConfig(array $config) : string

Parameters

$config

array

Exceptions

\Zend\Config\Exception\RuntimeException

Returns

string

Set callback for decoding YAML

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

Parameters

$yamlEncoder

\Zend\Config\Writer\callable

the decoder to set

Exceptions

\Zend\Config\Exception\InvalidArgumentException

Returns

toFile(): defined by Writer interface.

toFile(string $filename, mixed $config, bool $exclusiveLock) : void
Inherited

see \Zend\Config\Writer\WriterInterface::toFile()
inherited_from \Zend\Config\Writer\AbstractWriter::toFile()

Parameters

$filename

string

$config

mixed

$exclusiveLock

bool

Exceptions

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

toString(): defined by Writer interface.

toString(mixed $config) : string
Inherited

see \Zend\Config\Writer\WriterInterface::toString()
inherited_from \Zend\Config\Writer\AbstractWriter::toString()

Parameters

$config

mixed

Exceptions

\Zend\Config\Exception\InvalidArgumentException

Returns

string

 Properties

 

YAML encoder callback

$yamlEncoder : \Zend\Config\Writer\callable