This commit is contained in:
Cyprian Beauvois 2019-02-18 18:18:20 +01:00
parent f12b78c8b0
commit 07a1d6e201
3 changed files with 23 additions and 2 deletions

19
composer.lock generated Normal file
View File

@ -0,0 +1,19 @@
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "692cf76646b7b8c0cf2b57040ee21139",
"packages": [],
"packages-dev": [],
"aliases": [],
"minimum-stability": "stable",
"stability-flags": [],
"prefer-stable": false,
"prefer-lowest": false,
"platform": {
"php": ">=7.1"
},
"platform-dev": []
}

View File

@ -2,3 +2,6 @@ services:
_default: _default:
autowire: true autowire: true
autoconfigure: true autoconfigure: true
Bluesquare\Validator:
class: Bluesquare\Validator
arguments: ['@request_stack', '@translator_interface']

View File

@ -2,13 +2,12 @@
namespace Bluesquare; namespace Bluesquare;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
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 Validator extends ServiceEntityRepository class Validator
{ {
protected $request; protected $request;
protected $context; protected $context;