for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SLLH\IsoCodesValidator\Provider;
use Silex\Application;
use Silex\ServiceProviderInterface;
/**
* @author Sullivan Senechal <[email protected]>
*/
class IsoCodesValidatorServiceProvider implements ServiceProviderInterface
{
* {@inheritdoc}
public function register(Application $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');
}
public function boot(Application $app)