JsonBundleWriter

class JsonBundleWriter implements BundleWriterInterface Writes .json resource bundles. Methods write(string $path, string $locale, mixed $data) Writes data to a resource bundle. Details write(string $path, string $locale, mixed $data) 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.

OptionsResolver::setAllowedTypes()

OptionsResolver setAllowedTypes(string $option, string|string[] $allowedTypes) Sets allowed types for an option. Any type for which a corresponding is_() function exists is acceptable. Additionally, fully-qualified class or interface names may be passed. Parameters string $option The option name string|string[] $allowedTypes One or more accepted types Return Value OptionsResolver This instance Exceptions UndefinedOptionsException If the option is undefined AccessException If c

HourTransformer deprecated

class HourTransformer extends HourTransformer deprecated since version 2.3, to be removed in 3.0. Use {@link \Symfony\Component\Intl\DateFormatter\DateFormat\HourTransformer} instead. Alias of {@link \Symfony\Component\Intl\DateFormatter\DateFormat\HourTransformer}. Methods string format(DateTime $dateTime, int $length) Format a value using a configured DateTime as date/time source. from Transformer string getReverseMatchingRegExp(int $length) Returns a reverse matching regular e

BundleWriterInterface

interface BundleWriterInterface Writes resource bundle files. Methods write(string $path, string $locale, mixed $data) Writes data to a resource bundle. Details write(string $path, string $locale, mixed $data) 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.

PhpBundleWriter

class PhpBundleWriter implements BundleWriterInterface Writes .php resource bundles. Methods write(string $path, string $locale, mixed $data) Writes data to a resource bundle. Details write(string $path, string $locale, mixed $data) 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.

StopwatchHelper

class StopwatchHelper extends Helper StopwatchHelper provides methods time your PHP templates. Methods setCharset(string $charset) Sets the default charset. from Helper string getCharset() Gets the default charset. from Helper __construct(Stopwatch $stopwatch = null) string getName() Returns the canonical name of this helper. __call($method, $arguments = array()) Details setCharset(string $charset) Sets the default charset.

RegionBundle

class RegionBundle extends RegionDataProvider implements RegionBundleInterface Default implementation of {@link RegionBundleInterface}. Methods __construct(string $path, BundleEntryReaderInterface $reader, LocaleDataProvider $localeProvider) Creates a new region bundle. getRegions() from RegionDataProvider getName($region, $displayLocale = null) from RegionDataProvider getNames($displayLocale = null) from RegionDataProvider string|null getCountryName(string $country,

Component\Intl\Data

Namespaces Symfony\Component\Intl\Data\BundleSymfony\Component\Intl\Data\GeneratorSymfony\Component\Intl\Data\ProviderSymfony\Component\Intl\Data\Util

BufferedBundleReader

class BufferedBundleReader implements BundleReaderInterface Methods __construct(BundleReaderInterface $reader, int $bufferSize) Buffers a given reader. mixed read(string $path, string $locale) Reads a resource bundle. Details __construct(BundleReaderInterface $reader, int $bufferSize) Buffers a given reader. Parameters BundleReaderInterface $reader The reader to buffer int $bufferSize The number of entries to store in the buffer.

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 write(string $path, string $locale, mixed $data, $fallback = true) Writes data to