Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.217.117
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
v3.cesa.co.za /
vendor /
symfony /
validator /
Delete
Unzip
Name
Size
Permission
Date
Action
Attribute
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
Command
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
Constraints
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
Context
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
DataCollector
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
DependencyInjection
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
Exception
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
Mapping
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
Resources
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
Test
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
Util
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
Validator
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
Violation
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
.htaccess
237
B
-r-xr-xr-x
2026-08-17 03:12
CHANGELOG.md
20.65
KB
-rwxrwxr-x
2026-03-26 15:58
Constraint.php
10.32
KB
-rwxrwxr-x
2026-03-26 15:58
ConstraintValidator.php
4.62
KB
-rwxrwxr-x
2026-03-26 15:58
ConstraintValidatorFactory.php
1.16
KB
-rwxrwxr-x
2026-03-26 15:58
ConstraintValidatorFactoryInterface.php
688
B
-rwxrwxr-x
2026-03-26 15:58
ConstraintValidatorInterface.php
760
B
-rwxrwxr-x
2026-03-26 15:58
ConstraintViolation.php
4.39
KB
-rwxrwxr-x
2026-03-26 15:58
ConstraintViolationInterface.php
4.38
KB
-rwxrwxr-x
2026-03-26 15:58
ConstraintViolationList.php
3.8
KB
-rwxrwxr-x
2026-03-26 15:58
ConstraintViolationListInterface.php
1.9
KB
-rwxrwxr-x
2026-03-26 15:58
ContainerConstraintValidatorFactory.php
1.98
KB
-rwxrwxr-x
2026-03-26 15:58
GroupProviderInterface.php
728
B
-rwxrwxr-x
2026-03-26 15:58
GroupSequenceProviderInterface.php
676
B
-rwxrwxr-x
2026-03-26 15:58
LICENSE
1.04
KB
-rwxrwxr-x
2026-03-26 15:58
ObjectInitializerInterface.php
714
B
-rwxrwxr-x
2026-03-26 15:58
README.md
579
B
-rwxrwxr-x
2026-03-26 15:58
Validation.php
2.53
KB
-rwxrwxr-x
2026-03-26 15:58
ValidatorBuilder.php
13.67
KB
-rwxrwxr-x
2026-03-26 15:58
composer.json
2.17
KB
-rwxrwxr-x
2026-03-26 15:58
Save
Rename
<?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; use Symfony\Component\Validator\Exception\ValidationFailedException; use Symfony\Component\Validator\Validator\ValidatorInterface; /** * Entry point for the Validator component. * * @author Bernhard Schussek <bschussek@gmail.com> */ final class Validation { /** * Creates a callable chain of constraints. */ public static function createCallable(Constraint|ValidatorInterface|null $constraintOrValidator = null, Constraint ...$constraints): callable { $validator = self::createIsValidCallable($constraintOrValidator, ...$constraints); return static function ($value) use ($validator) { if (!$validator($value, $violations)) { throw new ValidationFailedException($value, $violations); } return $value; }; } /** * Creates a callable that returns true/false instead of throwing validation exceptions. * * @return callable(mixed $value, ConstraintViolationListInterface &$violations = null): bool */ public static function createIsValidCallable(Constraint|ValidatorInterface|null $constraintOrValidator = null, Constraint ...$constraints): callable { $validator = $constraintOrValidator; if ($constraintOrValidator instanceof Constraint) { $constraints = \func_get_args(); $validator = null; } $validator ??= self::createValidator(); return static function (mixed $value, ?ConstraintViolationListInterface &$violations = null) use ($constraints, $validator): bool { $violations = $validator->validate($value, $constraints); return 0 === $violations->count(); }; } /** * Creates a new validator. * * If you want to configure the validator, use * {@link createValidatorBuilder()} instead. */ public static function createValidator(): ValidatorInterface { return self::createValidatorBuilder()->getValidator(); } /** * Creates a configurable builder for validator objects. */ public static function createValidatorBuilder(): ValidatorBuilder { return new ValidatorBuilder(); } /** * This class cannot be instantiated. */ private function __construct() { } }