| 1 | <?php |
||
| 11 | class IsoCodesValidatorServiceProvider implements ServiceProviderInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * {@inheritdoc} |
||
| 15 | */ |
||
| 16 | public function register(Application $app) |
||
| 17 | { |
||
| 18 | if (isset($app['translator'])) { |
||
| 19 | $file = __DIR__.'/../Resources/translations/validators.'.$app['locale'].'.xlf'; |
||
| 20 | if (file_exists($file)) { |
||
| 21 | $app['translator']->addResource('xliff', $file, $app['locale'], 'validators'); |
||
| 22 | } |
||
| 23 | } |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * {@inheritdoc} |
||
| 28 | */ |
||
| 29 | public function boot(Application $app) |
||
| 32 | } |
||
| 33 |