/var/www/castlestone/releases/20210303152145/vendor/symfony/finder/Finder.php
/**
* Searches files and directories which match defined rules.
*
* @param string|array $dirs A directory path or an array of directories
*
* @return $this
*
* @throws DirectoryNotFoundException if one of the directories does not exist
*/
public function in($dirs)
{
$resolvedDirs = [];
foreach ((array) $dirs as $dir) {
if (is_dir($dir)) {
$resolvedDirs[] = $this->normalizeDir($dir);
} elseif ($glob = glob($dir, (\defined('GLOB_BRACE') ? GLOB_BRACE : 0) | GLOB_ONLYDIR)) {
$resolvedDirs = array_merge($resolvedDirs, array_map([$this, 'normalizeDir'], $glob));
} else {
throw new DirectoryNotFoundException(sprintf('The "%s" directory does not exist.', $dir));
}
}
$this->dirs = array_merge($this->dirs, $resolvedDirs);
return $this;
}
/**
* Returns an Iterator for the current Finder configuration.
*
* This method implements the IteratorAggregate interface.
*
* @return \Iterator|SplFileInfo[] An iterator
*
* @throws \LogicException if the in() method has not been called
*/
public function getIterator()
{
if (0 === \count($this->dirs) && 0 === \count($this->iterators)) {
Arguments
"The "/var/www/castlestone/releases/20210303152145/storage/framework/sessions" directory does not exist."
/var/www/castlestone/releases/20210303152145/vendor/illuminate/session/FileSessionHandler.php
return true;
}
/**
* {@inheritdoc}
*/
public function destroy($sessionId)
{
$this->files->delete($this->path.'/'.$sessionId);
return true;
}
/**
* {@inheritdoc}
*/
public function gc($lifetime)
{
$files = Finder::create()
->in($this->path)
->files()
->ignoreDotFiles(true)
->date('<= now - '.$lifetime.' seconds');
foreach ($files as $file) {
$this->files->delete($file->getRealPath());
}
}
}
Arguments
"/var/www/castlestone/releases/20210303152145/storage/framework/sessions"
/var/www/castlestone/releases/20210303152145/vendor/illuminate/session/Middleware/StartSession.php
return tap($this->manager->driver(), function ($session) use ($request) {
$session->setId($request->cookies->get($session->getName()));
});
}
/**
* Remove the garbage from the session if necessary.
*
* @param \Illuminate\Contracts\Session\Session $session
* @return void
*/
protected function collectGarbage(Session $session)
{
$config = $this->manager->getSessionConfig();
// Here we will see if this request hits the garbage collection lottery by hitting
// the odds needed to perform garbage collection on any given request. If we do
// hit it, we'll call this handler to let it delete all the expired sessions.
if ($this->configHitsLottery($config)) {
$session->getHandler()->gc($this->getSessionLifetimeInSeconds());
}
}
/**
* Determine if the configuration odds hit the lottery.
*
* @param array $config
* @return bool
*/
protected function configHitsLottery(array $config)
{
return random_int(1, $config['lottery'][1]) <= $config['lottery'][0];
}
/**
* Store the current URL for the request if necessary.
*
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Contracts\Session\Session $session
* @return void
Arguments
/var/www/castlestone/releases/20210303152145/vendor/illuminate/session/Middleware/StartSession.php
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
if (! $this->sessionConfigured()) {
return $next($request);
}
// If a session driver has been configured, we will need to start the session here
// so that the data is ready for an application. Note that the Laravel sessions
// do not make use of PHP "native" sessions in any way since they are crappy.
$request->setLaravelSession(
$session = $this->startSession($request)
);
$this->collectGarbage($session);
$response = $next($request);
$this->storeCurrentUrl($request, $session);
$this->addCookieToResponse($response, $session);
// Again, if the session has been configured we will need to close out the session
// so that the attributes may be persisted to some storage medium. We will also
// add the session identifier cookie to the application response headers now.
$this->saveSession($request);
return $response;
}
/**
* Start the session for the given request.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Contracts\Session\Session
Arguments
/var/www/castlestone/releases/20210303152145/vendor/illuminate/pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$response = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $response instanceof Responsable
? $response->toResponse($this->getContainer()->make(Request::class))
: $response;
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
Arguments
Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#5565 …5}
#routeResolver: Closure() {#5578 …5}
+attributes: ParameterBag {#50}
+request: ParameterBag {#56}
+query: ParameterBag {#56}
+server: ServerBag {#52}
+files: FileBag {#53}
+cookies: ParameterBag {#51}
+headers: HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/Resources/FundDownloads/3266.pdf"
#requestUri: "/Resources/FundDownloads/3266.pdf"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#5611}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#5602 …5}
/var/www/castlestone/releases/20210303152145/vendor/illuminate/routing/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#5565 …5}
#routeResolver: Closure() {#5578 …5}
+attributes: ParameterBag {#50}
+request: ParameterBag {#56}
+query: ParameterBag {#56}
+server: ServerBag {#52}
+files: FileBag {#53}
+cookies: ParameterBag {#51}
+headers: HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/Resources/FundDownloads/3266.pdf"
#requestUri: "/Resources/FundDownloads/3266.pdf"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#5611}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/castlestone/releases/20210303152145/vendor/themosis/framework/src/Route/Middleware/WordPressBindings.php
$this->router = $router;
}
/**
* Handle an incoming request.
*
* @param $request
* @param \Closure $next
*
* @return mixed
*/
public function handle($request, \Closure $next)
{
$route = $request->route();
if ($route->hasCondition()) {
$this->router->addWordPressBindings($route);
}
return $next($request);
}
}
Arguments
Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#5565 …5}
#routeResolver: Closure() {#5578 …5}
+attributes: ParameterBag {#50}
+request: ParameterBag {#56}
+query: ParameterBag {#56}
+server: ServerBag {#52}
+files: FileBag {#53}
+cookies: ParameterBag {#51}
+headers: HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/Resources/FundDownloads/3266.pdf"
#requestUri: "/Resources/FundDownloads/3266.pdf"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#5611}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/castlestone/releases/20210303152145/vendor/illuminate/pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$response = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $response instanceof Responsable
? $response->toResponse($this->getContainer()->make(Request::class))
: $response;
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
Arguments
Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#5565 …5}
#routeResolver: Closure() {#5578 …5}
+attributes: ParameterBag {#50}
+request: ParameterBag {#56}
+query: ParameterBag {#56}
+server: ServerBag {#52}
+files: FileBag {#53}
+cookies: ParameterBag {#51}
+headers: HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/Resources/FundDownloads/3266.pdf"
#requestUri: "/Resources/FundDownloads/3266.pdf"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#5611}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#5604 …5}
/var/www/castlestone/releases/20210303152145/vendor/illuminate/routing/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#5565 …5}
#routeResolver: Closure() {#5578 …5}
+attributes: ParameterBag {#50}
+request: ParameterBag {#56}
+query: ParameterBag {#56}
+server: ServerBag {#52}
+files: FileBag {#53}
+cookies: ParameterBag {#51}
+headers: HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/Resources/FundDownloads/3266.pdf"
#requestUri: "/Resources/FundDownloads/3266.pdf"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#5611}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/castlestone/releases/20210303152145/vendor/illuminate/pipeline/Pipeline.php
public function via($method)
{
$this->method = $method;
return $this;
}
/**
* Run the pipeline with a final destination callback.
*
* @param \Closure $destination
* @return mixed
*/
public function then(Closure $destination)
{
$pipeline = array_reduce(
array_reverse($this->pipes), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
* @return mixed
*/
public function thenReturn()
{
return $this->then(function ($passable) {
return $passable;
});
}
/**
* Get the final piece of the Closure onion.
*
* @param \Closure $destination
* @return \Closure
*/
Arguments
Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#5565 …5}
#routeResolver: Closure() {#5578 …5}
+attributes: ParameterBag {#50}
+request: ParameterBag {#56}
+query: ParameterBag {#56}
+server: ServerBag {#52}
+files: FileBag {#53}
+cookies: ParameterBag {#51}
+headers: HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/Resources/FundDownloads/3266.pdf"
#requestUri: "/Resources/FundDownloads/3266.pdf"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#5611}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/castlestone/releases/20210303152145/vendor/illuminate/routing/Router.php
*
* @param \Illuminate\Routing\Route $route
* @param \Illuminate\Http\Request $request
* @return mixed
*/
protected function runRouteWithinStack(Route $route, Request $request)
{
$shouldSkipMiddleware = $this->container->bound('middleware.disable') &&
$this->container->make('middleware.disable') === true;
$middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
return (new Pipeline($this->container))
->send($request)
->through($middleware)
->then(function ($request) use ($route) {
return $this->prepareResponse(
$request, $route->run()
);
});
}
/**
* Gather the middleware for the given route with resolved class names.
*
* @param \Illuminate\Routing\Route $route
* @return array
*/
public function gatherRouteMiddleware(Route $route)
{
$middleware = collect($route->gatherMiddleware())->map(function ($name) {
return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups);
})->flatten();
return $this->sortMiddleware($middleware);
}
/**
* Sort the given middleware by priority.
*
Arguments
Closure($request) {#5576 …5}
/var/www/castlestone/releases/20210303152145/vendor/illuminate/routing/Router.php
return $route;
}
/**
* Return the response for the given route.
*
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Routing\Route $route
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
*/
protected function runRoute(Request $request, Route $route)
{
$request->setRouteResolver(function () use ($route) {
return $route;
});
$this->events->dispatch(new Events\RouteMatched($route, $request));
return $this->prepareResponse($request,
$this->runRouteWithinStack($route, $request)
);
}
/**
* Run the given route within a Stack "onion" instance.
*
* @param \Illuminate\Routing\Route $route
* @param \Illuminate\Http\Request $request
* @return mixed
*/
protected function runRouteWithinStack(Route $route, Request $request)
{
$shouldSkipMiddleware = $this->container->bound('middleware.disable') &&
$this->container->make('middleware.disable') === true;
$middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
return (new Pipeline($this->container))
->send($request)
->through($middleware)
Arguments
Route {#165}
Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#5565 …5}
#routeResolver: Closure() {#5578 …5}
+attributes: ParameterBag {#50}
+request: ParameterBag {#56}
+query: ParameterBag {#56}
+server: ServerBag {#52}
+files: FileBag {#53}
+cookies: ParameterBag {#51}
+headers: HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/Resources/FundDownloads/3266.pdf"
#requestUri: "/Resources/FundDownloads/3266.pdf"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#5611}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/castlestone/releases/20210303152145/vendor/illuminate/routing/Router.php
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
*/
public function dispatch(Request $request)
{
$this->currentRequest = $request;
return $this->dispatchToRoute($request);
}
/**
* Dispatch the request to a route and return the response.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
*/
public function dispatchToRoute(Request $request)
{
return $this->runRoute($request, $this->findRoute($request));
}
/**
* Find the route matching a given request.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Routing\Route
*/
protected function findRoute($request)
{
$this->current = $route = $this->routes->match($request);
$this->container->instance(Route::class, $route);
return $route;
}
/**
* Return the response for the given route.
*
Arguments
Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#5565 …5}
#routeResolver: Closure() {#5578 …5}
+attributes: ParameterBag {#50}
+request: ParameterBag {#56}
+query: ParameterBag {#56}
+server: ServerBag {#52}
+files: FileBag {#53}
+cookies: ParameterBag {#51}
+headers: HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/Resources/FundDownloads/3266.pdf"
#requestUri: "/Resources/FundDownloads/3266.pdf"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#5611}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Route {#165}
/var/www/castlestone/releases/20210303152145/vendor/illuminate/routing/Router.php
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
*/
public function respondWithRoute($name)
{
$route = tap($this->routes->getByName($name))->bind($this->currentRequest);
return $this->runRoute($this->currentRequest, $route);
}
/**
* Dispatch the request to the application.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
*/
public function dispatch(Request $request)
{
$this->currentRequest = $request;
return $this->dispatchToRoute($request);
}
/**
* Dispatch the request to a route and return the response.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
*/
public function dispatchToRoute(Request $request)
{
return $this->runRoute($request, $this->findRoute($request));
}
/**
* Find the route matching a given request.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Routing\Route
*/
protected function findRoute($request)
Arguments
Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#5565 …5}
#routeResolver: Closure() {#5578 …5}
+attributes: ParameterBag {#50}
+request: ParameterBag {#56}
+query: ParameterBag {#56}
+server: ServerBag {#52}
+files: FileBag {#53}
+cookies: ParameterBag {#51}
+headers: HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/Resources/FundDownloads/3266.pdf"
#requestUri: "/Resources/FundDownloads/3266.pdf"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#5611}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/castlestone/releases/20210303152145/vendor/themosis/framework/src/Core/Http/Kernel.php
protected function sendRequestThroughRouter($request)
{
return (new Pipeline($this->app))
->send($request)
->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
->then($this->dispatchToRouter());
}
/**
* Get route dispatcher callback used by the
* routing pipeline.
*
* @return \Closure
*/
protected function dispatchToRouter()
{
return function ($request) {
$this->app->instance('request', $request);
return $this->router->dispatch($request);
};
}
/**
* Bootstrap the application.
*/
public function bootstrap()
{
if (! $this->app->hasBeenBootstrapped()) {
$this->app->bootstrapWith($this->bootstrappers());
}
}
/**
* Return the bootstrappers array.
*
* @return array
*/
protected function bootstrappers()
{
Arguments
Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#5565 …5}
#routeResolver: Closure() {#5578 …5}
+attributes: ParameterBag {#50}
+request: ParameterBag {#56}
+query: ParameterBag {#56}
+server: ServerBag {#52}
+files: FileBag {#53}
+cookies: ParameterBag {#51}
+headers: HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/Resources/FundDownloads/3266.pdf"
#requestUri: "/Resources/FundDownloads/3266.pdf"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#5611}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/castlestone/releases/20210303152145/vendor/illuminate/routing/Pipeline.php
use Symfony\Component\Debug\Exception\FatalThrowableError;
/**
* This extended pipeline catches any exceptions that occur during each slice.
*
* The exceptions are converted to HTTP responses for proper middleware handling.
*/
class Pipeline extends BasePipeline
{
/**
* Get the final piece of the Closure onion.
*
* @param \Closure $destination
* @return \Closure
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
Arguments
Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#5565 …5}
#routeResolver: Closure() {#5578 …5}
+attributes: ParameterBag {#50}
+request: ParameterBag {#56}
+query: ParameterBag {#56}
+server: ServerBag {#52}
+files: FileBag {#53}
+cookies: ParameterBag {#51}
+headers: HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/Resources/FundDownloads/3266.pdf"
#requestUri: "/Resources/FundDownloads/3266.pdf"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#5611}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/castlestone/releases/20210303152145/vendor/illuminate/pipeline/Pipeline.php
public function via($method)
{
$this->method = $method;
return $this;
}
/**
* Run the pipeline with a final destination callback.
*
* @param \Closure $destination
* @return mixed
*/
public function then(Closure $destination)
{
$pipeline = array_reduce(
array_reverse($this->pipes), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
* @return mixed
*/
public function thenReturn()
{
return $this->then(function ($passable) {
return $passable;
});
}
/**
* Get the final piece of the Closure onion.
*
* @param \Closure $destination
* @return \Closure
*/
Arguments
Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#5565 …5}
#routeResolver: Closure() {#5578 …5}
+attributes: ParameterBag {#50}
+request: ParameterBag {#56}
+query: ParameterBag {#56}
+server: ServerBag {#52}
+files: FileBag {#53}
+cookies: ParameterBag {#51}
+headers: HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/Resources/FundDownloads/3266.pdf"
#requestUri: "/Resources/FundDownloads/3266.pdf"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#5611}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/castlestone/releases/20210303152145/vendor/themosis/framework/src/Core/Http/Kernel.php
* @return bool
*/
public function hasMiddleware($middleware)
{
return in_array($middleware, $this->middleware);
}
/**
* Send given request through the middleware (if any) and router.
*
* @param \Illuminate\Http\Request $request
*
* @return IlluminateResponse
*/
protected function sendRequestThroughRouter($request)
{
return (new Pipeline($this->app))
->send($request)
->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
->then($this->dispatchToRouter());
}
/**
* Get route dispatcher callback used by the
* routing pipeline.
*
* @return \Closure
*/
protected function dispatchToRouter()
{
return function ($request) {
$this->app->instance('request', $request);
return $this->router->dispatch($request);
};
}
/**
* Bootstrap the application.
*/
Arguments
Closure($request) {#5573 …4}
/var/www/castlestone/releases/20210303152145/vendor/themosis/framework/src/Core/Http/Kernel.php
*/
public function init($request)
{
$this->app->instance('request', $request);
Facade::clearResolvedInstance('request');
$this->bootstrap();
}
/**
* Handle an incoming HTTP request.
*
* @param \Illuminate\Http\Request $request
*
* @return IlluminateResponse
*/
public function handle($request)
{
try {
$request->enableHttpMethodParameterOverride();
$response = $this->sendRequestThroughRouter($request);
} catch (Exception $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
} catch (Throwable $e) {
$this->reportException($e = new FatalThrowableError($e));
$response = $this->renderException($request, $e);
}
$this->app['events']->dispatch(
new RequestHandled($request, $response)
);
return $response;
}
/**
* Determine if the kernel has a given middleware.
*
* @param string $middleware
*
Arguments
Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#5565 …5}
#routeResolver: Closure() {#5578 …5}
+attributes: ParameterBag {#50}
+request: ParameterBag {#56}
+query: ParameterBag {#56}
+server: ServerBag {#52}
+files: FileBag {#53}
+cookies: ParameterBag {#51}
+headers: HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/Resources/FundDownloads/3266.pdf"
#requestUri: "/Resources/FundDownloads/3266.pdf"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#5611}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/castlestone/releases/20210303152145/vendor/themosis/framework/src/Core/Application.php
foreach ($this->terminatingCallbacks as $terminating) {
$this->call($terminating);
}
}
/**
* Handle incoming request and return a response.
* Abstract the implementation from the user for easy
* theme integration.
*
* @param string $kernel Application kernel class name.
* @param \Symfony\Component\HttpFoundation\Request $request
*
* @return $this
*/
public function manage(string $kernel, $request)
{
$kernel = $this->make($kernel);
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
return $this;
}
/**
* Handle WordPress administration incoming request.
* Only send response headers.
*
* @param string $kernel
* @param \Symfony\Component\HttpFoundation\Request $request
*
* @return $this;
*/
public function manageAdmin(string $kernel, $request)
{
if (! $this->isWordPressAdmin() && ! $this->has('action')) {
return $this;
Arguments
Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#5565 …5}
#routeResolver: Closure() {#5578 …5}
+attributes: ParameterBag {#50}
+request: ParameterBag {#56}
+query: ParameterBag {#56}
+server: ServerBag {#52}
+files: FileBag {#53}
+cookies: ParameterBag {#51}
+headers: HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/Resources/FundDownloads/3266.pdf"
#requestUri: "/Resources/FundDownloads/3266.pdf"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#5611}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/castlestone/releases/20210303152145/public/content/themes/castlestone-2019/index.php
<?php
use App\Http\Kernel;
use Themosis\Core\Application;
/**
* Default WordPress template.
*
* By default, routes should be defined at application
* root into the routes/web.php file.
*
* Routes can be overwritten using theme routes.php file.
*/
$app = Application::getInstance();
$app->manage(Kernel::class, $app['request']);
Arguments
Kernel {#5575}
Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#5565 …5}
#routeResolver: Closure() {#5578 …5}
+attributes: ParameterBag {#50}
+request: ParameterBag {#56}
+query: ParameterBag {#56}
+server: ServerBag {#52}
+files: FileBag {#53}
+cookies: ParameterBag {#51}
+headers: HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/Resources/FundDownloads/3266.pdf"
#requestUri: "/Resources/FundDownloads/3266.pdf"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#5611}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/castlestone/releases/20210303152145/public/cms/wp-includes/template-loader.php
elseif ( is_single() && $template = get_single_template() ) :
elseif ( is_page() && $template = get_page_template() ) :
elseif ( is_singular() && $template = get_singular_template() ) :
elseif ( is_category() && $template = get_category_template() ) :
elseif ( is_tag() && $template = get_tag_template() ) :
elseif ( is_author() && $template = get_author_template() ) :
elseif ( is_date() && $template = get_date_template() ) :
elseif ( is_archive() && $template = get_archive_template() ) :
else :
$template = get_index_template();
endif;
/**
* Filters the path of the current template before including it.
*
* @since 3.0.0
*
* @param string $template The path of the template to include.
*/
if ( $template = apply_filters( 'template_include', $template ) ) {
include( $template );
} elseif ( current_user_can( 'switch_themes' ) ) {
$theme = wp_get_theme();
if ( $theme->errors() ) {
wp_die( $theme->errors() );
}
}
return;
endif;
Arguments
"/var/www/castlestone/releases/20210303152145/public/content/themes/castlestone-2019/index.php"
/var/www/castlestone/releases/20210303152145/public/cms/wp-blog-header.php
<?php
/**
* Loads the WordPress environment and template.
*
* @package WordPress
*/
if ( ! isset( $wp_did_header ) ) {
$wp_did_header = true;
// Load the WordPress library.
require_once( dirname( __FILE__ ) . '/wp-load.php' );
// Set up the WordPress query.
wp();
// Load the theme template.
require_once( ABSPATH . WPINC . '/template-loader.php' );
}
Arguments
"/var/www/castlestone/releases/20210303152145/public/cms/wp-includes/template-loader.php"
/var/www/castlestone/releases/20210303152145/public/index.php
<?php
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require dirname(__FILE__).'/cms/wp-blog-header.php';
Arguments
"/var/www/castlestone/releases/20210303152145/public/cms/wp-blog-header.php"