/opt/alt/php55/usr/share/pear/Symfony/Component/HttpFoundation
NameSizeModeActions
File/-0755rm
Resources/-0755rm
Session/-0755rm
AcceptHeader.php36100644editdlrm
AcceptHeaderItem.php49150644editdlrm
ApacheRequest.php9300644editdlrm
autoloader.php3440644editdlrm
BinaryFileResponse.php96550644editdlrm
Cookie.php50650644editdlrm
ExpressionRequestMatcher.php13590644editdlrm
FileBag.php40330644editdlrm
HeaderBag.php81410644editdlrm
IpUtils.php35140644editdlrm
JsonResponse.php46330644editdlrm
ParameterBag.php80990644editdlrm
RedirectResponse.php26900644editdlrm
Request.php559080644editdlrm
RequestMatcher.php38010644editdlrm
RequestMatcherInterface.php7910644editdlrm
RequestStack.php23730644editdlrm
Response.php358070644editdlrm
ResponseHeaderBag.php88490644editdlrm
ServerBag.php37040644editdlrm
StreamedResponse.php32140644editdlrm
Edit: /opt/alt/php55/usr/share/pear/Symfony/Component/HttpFoundation/RequestStack.php (2373B)
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\HttpFoundation; /** * Request stack that controls the lifecycle of requests. * * @author Benjamin Eberlei */ class RequestStack { /** * @var Request[] */ private $requests = array(); /** * 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. */ 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. * * @return Request|null */ public function pop() { if (!$this->requests) { return null; } return array_pop($this->requests); } /** * @return Request|null */ public function getCurrentRequest() { return end($this->requests) ?: null; } /** * Gets the master Request. * * Be warned that making your code aware of the master request * might make it un-compatible with other features of your framework * like ESI support. * * @return Request|null */ public function getMasterRequest() { 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 master request, it returns null. * * @return Request|null */ public function getParentRequest() { $pos = count($this->requests) - 2; if (!isset($this->requests[$pos])) { return null; } return $this->requests[$pos]; } }