X7ROOT File Manager
Current Path:
/home/prisjneg/public_html/vendor/symfony/http-foundation
home
/
prisjneg
/
public_html
/
vendor
/
symfony
/
http-foundation
/
π
..
π
AcceptHeader.php
(3.36 KB)
π
AcceptHeaderItem.php
(3.19 KB)
π
BinaryFileResponse.php
(12.62 KB)
π
CHANGELOG.md
(19.11 KB)
π
ChainRequestMatcher.php
(873 B)
π
Cookie.php
(11.93 KB)
π
Exception
π
ExpressionRequestMatcher.php
(1.93 KB)
π
File
π
FileBag.php
(3.74 KB)
π
HeaderBag.php
(7.12 KB)
π
HeaderUtils.php
(9.06 KB)
π
InputBag.php
(5.01 KB)
π
IpUtils.php
(7.95 KB)
π
JsonResponse.php
(6.64 KB)
π
LICENSE
(1.04 KB)
π
ParameterBag.php
(7.46 KB)
π
README.md
(526 B)
π
RateLimiter
π
RedirectResponse.php
(2.56 KB)
π
Request.php
(68.02 KB)
π
RequestMatcher
π
RequestMatcher.php
(5.21 KB)
π
RequestMatcherInterface.php
(621 B)
π
RequestStack.php
(2.87 KB)
π
Response.php
(40.07 KB)
π
ResponseHeaderBag.php
(7.94 KB)
π
ServerBag.php
(3.92 KB)
π
Session
π
StreamedJsonResponse.php
(5.64 KB)
π
StreamedResponse.php
(3 KB)
π
Test
π
UriSigner.php
(3.21 KB)
π
UrlHelper.php
(3.05 KB)
π
composer.json
(1.31 KB)
Editing: AcceptHeaderItem.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; /** * Represents an Accept-* header item. * * @author Jean-FranΓ§ois Simon <contact@jfsimon.fr> */ class AcceptHeaderItem { private string $value; private float $quality = 1.0; private int $index = 0; private array $attributes = []; public function __construct(string $value, array $attributes = []) { $this->value = $value; foreach ($attributes as $name => $value) { $this->setAttribute($name, $value); } } /** * Builds an AcceptHeaderInstance instance from a string. */ public static function fromString(?string $itemValue): self { $parts = HeaderUtils::split($itemValue ?? '', ';='); $part = array_shift($parts); $attributes = HeaderUtils::combine($parts); return new self($part[0], $attributes); } /** * Returns header value's string representation. */ public function __toString(): string { $string = $this->value.($this->quality < 1 ? ';q='.$this->quality : ''); if (\count($this->attributes) > 0) { $string .= '; '.HeaderUtils::toString($this->attributes, ';'); } return $string; } /** * Set the item value. * * @return $this */ public function setValue(string $value): static { $this->value = $value; return $this; } /** * Returns the item value. */ public function getValue(): string { return $this->value; } /** * Set the item quality. * * @return $this */ public function setQuality(float $quality): static { $this->quality = $quality; return $this; } /** * Returns the item quality. */ public function getQuality(): float { return $this->quality; } /** * Set the item index. * * @return $this */ public function setIndex(int $index): static { $this->index = $index; return $this; } /** * Returns the item index. */ public function getIndex(): int { return $this->index; } /** * Tests if an attribute exists. */ public function hasAttribute(string $name): bool { return isset($this->attributes[$name]); } /** * Returns an attribute by its name. */ public function getAttribute(string $name, mixed $default = null): mixed { return $this->attributes[$name] ?? $default; } /** * Returns all attributes. */ public function getAttributes(): array { return $this->attributes; } /** * Set an attribute. * * @return $this */ public function setAttribute(string $name, string $value): static { if ('q' === $name) { $this->quality = (float) $value; } else { $this->attributes[$name] = $value; } return $this; } }
Upload File
Create Folder