mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-12-10 17:03:52 +09:00
Updates to vendors etc
This commit is contained in:
16
vendor/symfony/routing/Exception/LogicException.php
vendored
Normal file
16
vendor/symfony/routing/Exception/LogicException.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\Routing\Exception;
|
||||
|
||||
class LogicException extends \LogicException
|
||||
{
|
||||
}
|
||||
@@ -20,7 +20,7 @@ namespace Symfony\Component\Routing\Exception;
|
||||
*/
|
||||
class MethodNotAllowedException extends \RuntimeException implements ExceptionInterface
|
||||
{
|
||||
protected $allowedMethods = [];
|
||||
protected array $allowedMethods = [];
|
||||
|
||||
/**
|
||||
* @param string[] $allowedMethods
|
||||
|
||||
@@ -24,20 +24,12 @@ class MissingMandatoryParametersException extends \InvalidArgumentException impl
|
||||
|
||||
/**
|
||||
* @param string[] $missingParameters
|
||||
* @param int $code
|
||||
*/
|
||||
public function __construct(string $routeName = '', $missingParameters = null, $code = 0, ?\Throwable $previous = null)
|
||||
public function __construct(string $routeName = '', array $missingParameters = [], int $code = 0, ?\Throwable $previous = null)
|
||||
{
|
||||
if (\is_array($missingParameters)) {
|
||||
$this->routeName = $routeName;
|
||||
$this->missingParameters = $missingParameters;
|
||||
$message = sprintf('Some mandatory parameters are missing ("%s") to generate a URL for route "%s".', implode('", "', $missingParameters), $routeName);
|
||||
} else {
|
||||
trigger_deprecation('symfony/routing', '6.1', 'Construction of "%s" with an exception message is deprecated, provide the route name and an array of missing parameters instead.', __CLASS__);
|
||||
$message = $routeName;
|
||||
$previous = $code instanceof \Throwable ? $code : null;
|
||||
$code = (int) $missingParameters;
|
||||
}
|
||||
$this->routeName = $routeName;
|
||||
$this->missingParameters = $missingParameters;
|
||||
$message = \sprintf('Some mandatory parameters are missing ("%s") to generate a URL for route "%s".', implode('", "', $missingParameters), $routeName);
|
||||
|
||||
parent::__construct($message, $code, $previous);
|
||||
}
|
||||
|
||||
@@ -15,6 +15,6 @@ class RouteCircularReferenceException extends RuntimeException
|
||||
{
|
||||
public function __construct(string $routeId, array $path)
|
||||
{
|
||||
parent::__construct(sprintf('Circular reference detected for route "%s", path: "%s".', $routeId, implode(' -> ', $path)));
|
||||
parent::__construct(\sprintf('Circular reference detected for route "%s", path: "%s".', $routeId, implode(' -> ', $path)));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user