for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SLLH\IsoCodesValidator\Provider;
use Pimple\Container;
use Pimple\ServiceProviderInterface;
/**
* @author Sullivan Senechal <[email protected]>
*/
class IsoCodesValidatorServiceProvider implements ServiceProviderInterface
{
* {@inheritdoc}
public function register(Container $app)
if (isset($app['translator'])) {
$file = __DIR__.'/../Resources/translations/validators.'.$app['locale'].'.xlf';
if (file_exists($file)) {
$app['translator']->addResource('xliff', $file, $app['locale'], 'validators');
}