Initial Drupal 11 with DDEV setup
This commit is contained in:
16
vendor/symfony/serializer/Exception/BadMethodCallException.php
vendored
Normal file
16
vendor/symfony/serializer/Exception/BadMethodCallException.php
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
<?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\Serializer\Exception;
|
||||
|
||||
class BadMethodCallException extends \BadMethodCallException implements ExceptionInterface
|
||||
{
|
||||
}
|
||||
21
vendor/symfony/serializer/Exception/CircularReferenceException.php
vendored
Normal file
21
vendor/symfony/serializer/Exception/CircularReferenceException.php
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
<?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\Serializer\Exception;
|
||||
|
||||
/**
|
||||
* CircularReferenceException.
|
||||
*
|
||||
* @author Kévin Dunglas <dunglas@gmail.com>
|
||||
*/
|
||||
class CircularReferenceException extends RuntimeException
|
||||
{
|
||||
}
|
||||
21
vendor/symfony/serializer/Exception/ExceptionInterface.php
vendored
Normal file
21
vendor/symfony/serializer/Exception/ExceptionInterface.php
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
<?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\Serializer\Exception;
|
||||
|
||||
/**
|
||||
* Base exception interface.
|
||||
*
|
||||
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
|
||||
*/
|
||||
interface ExceptionInterface extends \Throwable
|
||||
{
|
||||
}
|
||||
37
vendor/symfony/serializer/Exception/ExtraAttributesException.php
vendored
Normal file
37
vendor/symfony/serializer/Exception/ExtraAttributesException.php
vendored
Normal file
@ -0,0 +1,37 @@
|
||||
<?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\Serializer\Exception;
|
||||
|
||||
/**
|
||||
* ExtraAttributesException.
|
||||
*
|
||||
* @author Julien DIDIER <julien@didier.io>
|
||||
*/
|
||||
class ExtraAttributesException extends RuntimeException
|
||||
{
|
||||
public function __construct(
|
||||
private readonly array $extraAttributes,
|
||||
?\Throwable $previous = null,
|
||||
) {
|
||||
$msg = \sprintf('Extra attributes are not allowed ("%s" %s unknown).', implode('", "', $extraAttributes), \count($extraAttributes) > 1 ? 'are' : 'is');
|
||||
|
||||
parent::__construct($msg, 0, $previous);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the extra attributes that are not allowed.
|
||||
*/
|
||||
public function getExtraAttributes(): array
|
||||
{
|
||||
return $this->extraAttributes;
|
||||
}
|
||||
}
|
||||
21
vendor/symfony/serializer/Exception/InvalidArgumentException.php
vendored
Normal file
21
vendor/symfony/serializer/Exception/InvalidArgumentException.php
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
<?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\Serializer\Exception;
|
||||
|
||||
/**
|
||||
* InvalidArgumentException.
|
||||
*
|
||||
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
|
||||
*/
|
||||
class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface
|
||||
{
|
||||
}
|
||||
21
vendor/symfony/serializer/Exception/LogicException.php
vendored
Normal file
21
vendor/symfony/serializer/Exception/LogicException.php
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
<?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\Serializer\Exception;
|
||||
|
||||
/**
|
||||
* LogicException.
|
||||
*
|
||||
* @author Lukas Kahwe Smith <smith@pooteeweet.org>
|
||||
*/
|
||||
class LogicException extends \LogicException implements ExceptionInterface
|
||||
{
|
||||
}
|
||||
21
vendor/symfony/serializer/Exception/MappingException.php
vendored
Normal file
21
vendor/symfony/serializer/Exception/MappingException.php
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
<?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\Serializer\Exception;
|
||||
|
||||
/**
|
||||
* MappingException.
|
||||
*
|
||||
* @author Kévin Dunglas <dunglas@gmail.com>
|
||||
*/
|
||||
class MappingException extends RuntimeException
|
||||
{
|
||||
}
|
||||
48
vendor/symfony/serializer/Exception/MissingConstructorArgumentsException.php
vendored
Normal file
48
vendor/symfony/serializer/Exception/MissingConstructorArgumentsException.php
vendored
Normal file
@ -0,0 +1,48 @@
|
||||
<?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\Serializer\Exception;
|
||||
|
||||
/**
|
||||
* @author Maxime VEBER <maxime.veber@nekland.fr>
|
||||
*/
|
||||
class MissingConstructorArgumentsException extends RuntimeException
|
||||
{
|
||||
/**
|
||||
* @param string[] $missingArguments
|
||||
* @param class-string|null $class
|
||||
*/
|
||||
public function __construct(
|
||||
string $message,
|
||||
int $code = 0,
|
||||
?\Throwable $previous = null,
|
||||
private array $missingArguments = [],
|
||||
private ?string $class = null,
|
||||
) {
|
||||
parent::__construct($message, $code, $previous);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
public function getMissingConstructorArguments(): array
|
||||
{
|
||||
return $this->missingArguments;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return class-string|null
|
||||
*/
|
||||
public function getClass(): ?string
|
||||
{
|
||||
return $this->class;
|
||||
}
|
||||
}
|
||||
19
vendor/symfony/serializer/Exception/NotEncodableValueException.php
vendored
Normal file
19
vendor/symfony/serializer/Exception/NotEncodableValueException.php
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
<?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\Serializer\Exception;
|
||||
|
||||
/**
|
||||
* @author Christian Flothmann <christian.flothmann@sensiolabs.de>
|
||||
*/
|
||||
class NotEncodableValueException extends UnexpectedValueException
|
||||
{
|
||||
}
|
||||
64
vendor/symfony/serializer/Exception/NotNormalizableValueException.php
vendored
Normal file
64
vendor/symfony/serializer/Exception/NotNormalizableValueException.php
vendored
Normal file
@ -0,0 +1,64 @@
|
||||
<?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\Serializer\Exception;
|
||||
|
||||
/**
|
||||
* @author Christian Flothmann <christian.flothmann@sensiolabs.de>
|
||||
*/
|
||||
class NotNormalizableValueException extends UnexpectedValueException
|
||||
{
|
||||
private ?string $currentType = null;
|
||||
private ?array $expectedTypes = null;
|
||||
private ?string $path = null;
|
||||
private bool $useMessageForUser = false;
|
||||
|
||||
/**
|
||||
* @param list<string|\Stringable> $expectedTypes
|
||||
* @param bool $useMessageForUser If the message passed to this exception is something that can be shown
|
||||
* safely to your user. In other words, avoid catching other exceptions and
|
||||
* passing their message directly to this class.
|
||||
*/
|
||||
public static function createForUnexpectedDataType(string $message, mixed $data, array $expectedTypes, ?string $path = null, bool $useMessageForUser = false, int $code = 0, ?\Throwable $previous = null): self
|
||||
{
|
||||
$self = new self($message, $code, $previous);
|
||||
|
||||
$self->currentType = get_debug_type($data);
|
||||
$self->expectedTypes = array_map(strval(...), $expectedTypes);
|
||||
$self->path = $path;
|
||||
$self->useMessageForUser = $useMessageForUser;
|
||||
|
||||
return $self;
|
||||
}
|
||||
|
||||
public function getCurrentType(): ?string
|
||||
{
|
||||
return $this->currentType;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string[]|null
|
||||
*/
|
||||
public function getExpectedTypes(): ?array
|
||||
{
|
||||
return $this->expectedTypes;
|
||||
}
|
||||
|
||||
public function getPath(): ?string
|
||||
{
|
||||
return $this->path;
|
||||
}
|
||||
|
||||
public function canUseMessageForUser(): ?bool
|
||||
{
|
||||
return $this->useMessageForUser;
|
||||
}
|
||||
}
|
||||
40
vendor/symfony/serializer/Exception/PartialDenormalizationException.php
vendored
Normal file
40
vendor/symfony/serializer/Exception/PartialDenormalizationException.php
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
<?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\Serializer\Exception;
|
||||
|
||||
/**
|
||||
* @author Grégoire Pineau <lyrixx@lyrixx.info>
|
||||
*/
|
||||
class PartialDenormalizationException extends UnexpectedValueException
|
||||
{
|
||||
/**
|
||||
* @param NotNormalizableValueException[] $errors
|
||||
*/
|
||||
public function __construct(
|
||||
private mixed $data,
|
||||
private array $errors,
|
||||
) {
|
||||
}
|
||||
|
||||
public function getData(): mixed
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return NotNormalizableValueException[]
|
||||
*/
|
||||
public function getErrors(): array
|
||||
{
|
||||
return $this->errors;
|
||||
}
|
||||
}
|
||||
21
vendor/symfony/serializer/Exception/RuntimeException.php
vendored
Normal file
21
vendor/symfony/serializer/Exception/RuntimeException.php
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
<?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\Serializer\Exception;
|
||||
|
||||
/**
|
||||
* RuntimeException.
|
||||
*
|
||||
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
|
||||
*/
|
||||
class RuntimeException extends \RuntimeException implements ExceptionInterface
|
||||
{
|
||||
}
|
||||
29
vendor/symfony/serializer/Exception/UnexpectedPropertyException.php
vendored
Normal file
29
vendor/symfony/serializer/Exception/UnexpectedPropertyException.php
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
<?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\Serializer\Exception;
|
||||
|
||||
/**
|
||||
* UnexpectedPropertyException.
|
||||
*
|
||||
* @author Aurélien Pillevesse <aurelienpillevesse@hotmail.fr>
|
||||
*/
|
||||
class UnexpectedPropertyException extends \UnexpectedValueException implements ExceptionInterface
|
||||
{
|
||||
public function __construct(
|
||||
public readonly string $property,
|
||||
?\Throwable $previous = null,
|
||||
) {
|
||||
$msg = \sprintf('Property is not allowed ("%s" is unknown).', $this->property);
|
||||
|
||||
parent::__construct($msg, 0, $previous);
|
||||
}
|
||||
}
|
||||
21
vendor/symfony/serializer/Exception/UnexpectedValueException.php
vendored
Normal file
21
vendor/symfony/serializer/Exception/UnexpectedValueException.php
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
<?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\Serializer\Exception;
|
||||
|
||||
/**
|
||||
* UnexpectedValueException.
|
||||
*
|
||||
* @author Lukas Kahwe Smith <smith@pooteeweet.org>
|
||||
*/
|
||||
class UnexpectedValueException extends \UnexpectedValueException implements ExceptionInterface
|
||||
{
|
||||
}
|
||||
21
vendor/symfony/serializer/Exception/UnsupportedException.php
vendored
Normal file
21
vendor/symfony/serializer/Exception/UnsupportedException.php
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
<?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\Serializer\Exception;
|
||||
|
||||
/**
|
||||
* UnsupportedException.
|
||||
*
|
||||
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
|
||||
*/
|
||||
class UnsupportedException extends InvalidArgumentException
|
||||
{
|
||||
}
|
||||
19
vendor/symfony/serializer/Exception/UnsupportedFormatException.php
vendored
Normal file
19
vendor/symfony/serializer/Exception/UnsupportedFormatException.php
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
<?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\Serializer\Exception;
|
||||
|
||||
/**
|
||||
* @author Konstantin Myakshin <molodchick@gmail.com>
|
||||
*/
|
||||
class UnsupportedFormatException extends NotEncodableValueException
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user