GeneratorConfig

GeneratorConfig

class GeneratorConfig

Stores contextual information for resource bundle generation.

Methods

__construct($sourceDir, $icuVersion)
addBundleWriter(string $targetDir, BundleWriterInterface $writer)

Adds a writer to be used during the data conversion.

BundleWriterInterface[] getBundleWriters()

Returns the writers indexed by their output directories.

string getSourceDir()

Returns the directory where the source versions of the resource bundles are stored.

string getIcuVersion()

Returns the ICU version of the bundles being converted.

Details

__construct($sourceDir, $icuVersion)

Parameters

$sourceDir
$icuVersion

addBundleWriter(string $targetDir, BundleWriterInterface $writer)

Adds a writer to be used during the data conversion.

Parameters

string $targetDir The output directory
BundleWriterInterface $writer The writer instance

BundleWriterInterface[] getBundleWriters()

Returns the writers indexed by their output directories.

Return Value

BundleWriterInterface[]

string getSourceDir()

Returns the directory where the source versions of the resource bundles are stored.

Return Value

string An absolute path to a directory

string getIcuVersion()

Returns the ICU version of the bundles being converted.

Return Value

string The ICU version string

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.3/Symfony/Component/Intl/Data/Generator/GeneratorConfig.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部