| @@ 2445-2452 (lines=8) @@ | ||
| 2442 | * |
|
| 2443 | * @return \Symfony\Bundle\FrameworkBundle\Translation\Translator A Symfony\Bundle\FrameworkBundle\Translation\Translator instance |
|
| 2444 | */ |
|
| 2445 | protected function getTranslator_DefaultService() |
|
| 2446 | { |
|
| 2447 | $this->services['translator.default'] = $instance = new \Symfony\Bundle\FrameworkBundle\Translation\Translator($this, $this->get('translator.selector'), array('translation.loader.php' => array(0 => 'php'), 'translation.loader.yml' => array(0 => 'yml'), 'translation.loader.xliff' => array(0 => 'xlf', 1 => 'xliff'), 'translation.loader.po' => array(0 => 'po'), 'translation.loader.mo' => array(0 => 'mo'), 'translation.loader.qt' => array(0 => 'ts'), 'translation.loader.csv' => array(0 => 'csv'), 'translation.loader.res' => array(0 => 'res'), 'translation.loader.dat' => array(0 => 'dat'), 'translation.loader.ini' => array(0 => 'ini'), 'translation.loader.json' => array(0 => 'json')), array('cache_dir' => (__DIR__.'/translations'), 'debug' => true), array()); |
|
| 2448 | ||
| 2449 | $instance->setConfigCacheFactory($this->get('config_cache_factory')); |
|
| 2450 | ||
| 2451 | return $instance; |
|
| 2452 | } |
|
| 2453 | ||
| 2454 | /** |
|
| 2455 | * Gets the 'translator_listener' service. |
|
| @@ 1911-1918 (lines=8) @@ | ||
| 1908 | * |
|
| 1909 | * @return \Symfony\Bundle\FrameworkBundle\Translation\Translator A Symfony\Bundle\FrameworkBundle\Translation\Translator instance |
|
| 1910 | */ |
|
| 1911 | protected function getTranslator_DefaultService() |
|
| 1912 | { |
|
| 1913 | $this->services['translator.default'] = $instance = new \Symfony\Bundle\FrameworkBundle\Translation\Translator($this, $this->get('translator.selector'), array('translation.loader.php' => array(0 => 'php'), 'translation.loader.yml' => array(0 => 'yml'), 'translation.loader.xliff' => array(0 => 'xlf', 1 => 'xliff'), 'translation.loader.po' => array(0 => 'po'), 'translation.loader.mo' => array(0 => 'mo'), 'translation.loader.qt' => array(0 => 'ts'), 'translation.loader.csv' => array(0 => 'csv'), 'translation.loader.res' => array(0 => 'res'), 'translation.loader.dat' => array(0 => 'dat'), 'translation.loader.ini' => array(0 => 'ini'), 'translation.loader.json' => array(0 => 'json')), array('cache_dir' => (__DIR__.'/translations'), 'debug' => false), array()); |
|
| 1914 | ||
| 1915 | $instance->setConfigCacheFactory($this->get('config_cache_factory')); |
|
| 1916 | ||
| 1917 | return $instance; |
|
| 1918 | } |
|
| 1919 | ||
| 1920 | /* |
|
| 1921 | * Gets the 'translator_listener' service. |
|