W3cubDocs

/Symfony 2.8

Symfony\Component\Intl\Data\Bundle\Writer\TextBundleWriter

class TextBundleWriter implements BundleWriterInterface

Writes .txt resource bundles.

The resulting files can be converted to binary .res files using a {@link \Symfony\Component\Intl\ResourceBundle\Compiler\BundleCompilerInterface} implementation.

Methods

write(string $path, string $locale, mixed $data, $fallback = true)

Writes data to a resource bundle.

Details

public write(string $path, string $locale, mixed $data, $fallback = true)

Writes data to a resource bundle.

Parameters

string $path The path to the resource bundle.
string $locale The locale to (over-)write.
mixed $data The data to write.
$fallback

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Component/Intl/Data/Bundle/Writer/TextBundleWriter.html