init
This commit is contained in:
32
backend/vendor/symfony/validator/Attribute/ExtendsValidationFor.php
vendored
Normal file
32
backend/vendor/symfony/validator/Attribute/ExtendsValidationFor.php
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\Validator\Attribute;
|
||||
|
||||
/**
|
||||
* Declares that constraints listed on the current class should be added to the given class.
|
||||
*
|
||||
* Classes that use this attribute should contain only properties and methods that
|
||||
* exist on the target class (not necessarily all of them).
|
||||
*
|
||||
* @author Nicolas Grekas <p@tchwork.com>
|
||||
*/
|
||||
#[\Attribute(\Attribute::TARGET_CLASS)]
|
||||
final class ExtendsValidationFor
|
||||
{
|
||||
/**
|
||||
* @param class-string $class
|
||||
*/
|
||||
public function __construct(
|
||||
public string $class,
|
||||
) {
|
||||
}
|
||||
}
|
||||
22
backend/vendor/symfony/validator/Attribute/HasNamedArguments.php
vendored
Normal file
22
backend/vendor/symfony/validator/Attribute/HasNamedArguments.php
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\Validator\Attribute;
|
||||
|
||||
/**
|
||||
* Hints the loader that some constraint options are required.
|
||||
*
|
||||
* @see https://symfony.com/doc/current/validation/custom_constraint.html
|
||||
*/
|
||||
#[\Attribute(\Attribute::TARGET_METHOD)]
|
||||
final class HasNamedArguments
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user