You've already forked symfony-validator
test
This commit is contained in:
19
composer.lock
generated
Normal file
19
composer.lock
generated
Normal 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": []
|
||||
}
|
||||
@@ -2,3 +2,6 @@ services:
|
||||
_default:
|
||||
autowire: true
|
||||
autoconfigure: true
|
||||
Bluesquare\Validator:
|
||||
class: Bluesquare\Validator
|
||||
arguments: ['@request_stack', '@translator_interface']
|
||||
|
||||
@@ -2,13 +2,12 @@
|
||||
|
||||
namespace Bluesquare;
|
||||
|
||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
||||
use Symfony\Component\HttpFoundation\JsonResponse;
|
||||
use Symfony\Component\HttpFoundation\RequestStack;
|
||||
use Symfony\Contracts\Translation\TranslatorInterface;
|
||||
use Traversable;
|
||||
|
||||
class Validator extends ServiceEntityRepository
|
||||
class Validator
|
||||
{
|
||||
protected $request;
|
||||
protected $context;
|
||||
|
||||
Reference in New Issue
Block a user