This commit is contained in:
Cyprian Beauvois 2019-02-19 11:06:19 +01:00
parent 9b325c3cc9
commit 841220539e
1 changed files with 1 additions and 13 deletions

View File

@ -4,13 +4,12 @@ namespace Bluesquare;
use Symfony\Component\Config\FileLocator; use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\Extension;
use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\RequestStack; use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Contracts\Translation\TranslatorInterface; use Symfony\Contracts\Translation\TranslatorInterface;
use Traversable; use Traversable;
class ValidatorBundle extends Extension class ValidatorBundle
{ {
protected $request; protected $request;
protected $context; protected $context;
@ -443,15 +442,4 @@ class ValidatorBundle extends Extension
$words = array_map('ucfirst', explode('_', $string)); $words = array_map('ucfirst', explode('_', $string));
return implode('', $words); return implode('', $words);
} }
/**
* Loads a specific configuration.
*
* @throws \InvalidArgumentException When provided tag is not defined in this extension
*/
public function load(array $configs, ContainerBuilder $container)
{
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('services.xml');
}
} }