X7ROOT File Manager
Current Path:
/home/gfecatvj/sites/realesbar-X/vendor/symfony/http-foundation
home
/
gfecatvj
/
sites
/
realesbar-X
/
vendor
/
symfony
/
http-foundation
/
📁
..
📄
AcceptHeader.php
(3.55 KB)
📄
AcceptHeaderItem.php
(3.36 KB)
📄
BinaryFileResponse.php
(11.78 KB)
📄
CHANGELOG.md
(13.59 KB)
📄
Cookie.php
(10.97 KB)
📁
Exception
📄
ExpressionRequestMatcher.php
(1.32 KB)
📁
File
📄
FileBag.php
(3.86 KB)
📄
HeaderBag.php
(7.23 KB)
📄
HeaderUtils.php
(7.15 KB)
📄
InputBag.php
(3.47 KB)
📄
IpUtils.php
(5.44 KB)
📄
JsonResponse.php
(7.17 KB)
📄
LICENSE
(1.04 KB)
📄
ParameterBag.php
(5.39 KB)
📄
README.md
(531 B)
📄
RedirectResponse.php
(3 KB)
📄
Request.php
(64.33 KB)
📄
RequestMatcher.php
(4.48 KB)
📄
RequestMatcherInterface.php
(687 B)
📄
RequestStack.php
(2.31 KB)
📄
Response.php
(35.98 KB)
📄
ResponseHeaderBag.php
(7.82 KB)
📄
ServerBag.php
(3.95 KB)
📁
Session
📄
StreamedResponse.php
(3.07 KB)
📁
Test
📄
UrlHelper.php
(3.03 KB)
📄
composer.json
(1.16 KB)
Editing: InputBag.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\HttpFoundation; use Symfony\Component\HttpFoundation\Exception\BadRequestException; /** * InputBag is a container for user input values such as $_GET, $_POST, $_REQUEST, and $_COOKIE. * * @author Saif Eddin Gmati <saif.gmati@symfony.com> */ final class InputBag extends ParameterBag { /** * Returns a string input value by name. * * @param string|null $default The default value if the input key does not exist * * @return string|null */ public function get(string $key, $default = null) { if (null !== $default && !is_scalar($default) && !(\is_object($default) && method_exists($default, '__toString'))) { trigger_deprecation('symfony/http-foundation', '5.1', 'Passing a non-string value as 2nd argument to "%s()" is deprecated, pass a string or null instead.', __METHOD__); } $value = parent::get($key, $this); if (null !== $value && $this !== $value && !is_scalar($value) && !(\is_object($value) && method_exists($value, '__toString'))) { trigger_deprecation('symfony/http-foundation', '5.1', 'Retrieving a non-string value from "%s()" is deprecated, and will throw a "%s" exception in Symfony 6.0, use "%s::all($key)" instead.', __METHOD__, BadRequestException::class, __CLASS__); } return $this === $value ? $default : $value; } /** * {@inheritdoc} */ public function all(string $key = null): array { return parent::all($key); } /** * Replaces the current input values by a new set. */ public function replace(array $inputs = []) { $this->parameters = []; $this->add($inputs); } /** * Adds input values. */ public function add(array $inputs = []) { foreach ($inputs as $input => $value) { $this->set($input, $value); } } /** * Sets an input by name. * * @param string|array $value */ public function set(string $key, $value) { if (!is_scalar($value) && !\is_array($value) && !method_exists($value, '__toString')) { trigger_deprecation('symfony/http-foundation', '5.1', 'Passing "%s" as a 2nd Argument to "%s()" is deprecated, pass a string or an array instead.', get_debug_type($value), __METHOD__); } $this->parameters[$key] = $value; } /** * {@inheritdoc} */ public function filter(string $key, $default = null, int $filter = FILTER_DEFAULT, $options = []) { $value = $this->has($key) ? $this->all()[$key] : $default; // Always turn $options into an array - this allows filter_var option shortcuts. if (!\is_array($options) && $options) { $options = ['flags' => $options]; } if (\is_array($value) && !(($options['flags'] ?? 0) & (FILTER_REQUIRE_ARRAY | FILTER_FORCE_ARRAY))) { trigger_deprecation('symfony/http-foundation', '5.1', 'Filtering an array value with "%s()" without passing the FILTER_REQUIRE_ARRAY or FILTER_FORCE_ARRAY flag is deprecated', __METHOD__); if (!isset($options['flags'])) { $options['flags'] = FILTER_REQUIRE_ARRAY; } } return filter_var($value, $filter, $options); } }
Upload File
Create Folder