4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Icu
;
14 use Symfony\Component\Intl\ResourceBundle\Reader\PhpBundleReader
;
17 * @author Bernhard Schussek <bschussek@gmail.com>
22 * Returns the version of the bundled ICU data.
24 * @return string The version string.
26 public static function getVersion()
28 return trim(file_get_contents(__DIR__
. '/Resources/data/version.txt'));
32 * Returns whether the ICU data is stubbed.
34 * @return Boolean Returns true if the ICU data is stubbed, false if it is
35 * loaded from ICU .res files.
37 public static function isStubbed()
43 * Returns the path to the directory where the resource bundles are stored.
45 * @return string The absolute path to the resource directory.
47 public static function getResourceDirectory()
49 return realpath(__DIR__
. '/Resources/data');
53 * Returns a reader for reading resource bundles in this component.
55 * @return \Symfony\Component\Intl\ResourceBundle\Reader\BundleReaderInterface
57 public static function getBundleReader()
59 return new PhpBundleReader();
63 * This class must not be instantiated.
65 private function __construct() {}