/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php
public function getSaveHandler()
{
return $this->saveHandler;
}
/**
* {@inheritdoc}
*/
public function start()
{
if ($this->started) {
return true;
}
if (\PHP_SESSION_ACTIVE === session_status()) {
throw new \RuntimeException('Failed to start the session: already started by PHP.');
}
if (filter_var(\ini_get('session.use_cookies'), \FILTER_VALIDATE_BOOLEAN) && headers_sent($file, $line)) {
throw new \RuntimeException(sprintf('Failed to start the session because headers have already been sent by "%s" at line %d.', $file, $line));
}
$sessionId = $_COOKIE[session_name()] ?? null;
/*
* Explanation of the session ID regular expression: `/^[a-zA-Z0-9,-]{22,250}$/`.
*
* ---------- Part 1
*
* The part `[a-zA-Z0-9,-]` is related to the PHP ini directive `session.sid_bits_per_character` defined as 6.
* See https://www.php.net/manual/en/session.configuration.php#ini.session.sid-bits-per-character.
* Allowed values are integers such as:
* - 4 for range `a-f0-9`
* - 5 for range `a-v0-9`
* - 6 for range `a-zA-Z0-9,-`
*
* ---------- Part 2
*
* The part `{22,250}` is related to the PHP ini directive `session.sid_length`.
* See https://www.php.net/manual/en/session.configuration.php#ini.session.sid-length.
* Allowed values are integers between 22 and 256, but we use 250 for the max.
Arguments
"Failed to start the session because headers have already been sent by "/datadrive/artplumb/public_html/packages/studio_testimonials_pro/blocks/studio_testimonials_pro/controller.php" at line 462."
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php
if ($this->started) {
throw new \LogicException('Cannot register a bag when the session is already started.');
}
$this->bags[$bag->getName()] = $bag;
}
/**
* {@inheritdoc}
*/
public function getBag(string $name)
{
if (!isset($this->bags[$name])) {
throw new \InvalidArgumentException(sprintf('The SessionBagInterface "%s" is not registered.', $name));
}
if (!$this->started && $this->saveHandler->isActive()) {
$this->loadSession();
} elseif (!$this->started) {
$this->start();
}
return $this->bags[$name];
}
public function setMetadataBag(MetadataBag $metaBag = null)
{
if (null === $metaBag) {
$metaBag = new MetadataBag();
}
$this->metadataBag = $metaBag;
}
/**
* Gets the MetadataBag.
*
* @return MetadataBag
*/
public function getMetadataBag()
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Session/Storage/LoggedStorage.php
// If the existing session has expired on its own
if ($lifetime && time() > $lastUsed + $lifetime) {
$this->logInfo('Session expired.');
}
return $this->wrappedStorage->clear();
}
/**
* Gets a SessionBagInterface by name.
*
* @param string $name
*
* @return SessionBagInterface
*
* @throws \InvalidArgumentException If the bag does not exist
*/
public function getBag($name)
{
return $this->wrappedStorage->getBag($name);
}
/**
* Registers a SessionBagInterface for use.
*/
public function registerBag(SessionBagInterface $bag)
{
return $this->wrappedStorage->registerBag($bag);
}
/**
* @return MetadataBag
*/
public function getMetadataBag()
{
return $this->wrappedStorage->getMetadataBag();
}
}
Arguments
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/vendor/symfony/http-foundation/Session/Session.php
($this->usageReporter)();
}
return $this->storage->getMetadataBag();
}
/**
* {@inheritdoc}
*/
public function registerBag(SessionBagInterface $bag)
{
$this->storage->registerBag(new SessionBagProxy($bag, $this->data, $this->usageIndex, $this->usageReporter));
}
/**
* {@inheritdoc}
*/
public function getBag(string $name)
{
$bag = $this->storage->getBag($name);
return method_exists($bag, 'getBag') ? $bag->getBag() : $bag;
}
/**
* Gets the flashbag interface.
*
* @return FlashBagInterface
*/
public function getFlashBag()
{
return $this->getBag($this->flashName);
}
/**
* Gets the attributebag interface.
*
* Note that this method was added to help with IDE autocompletion.
*/
private function getAttributeBag(): AttributeBagInterface
Arguments
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/vendor/symfony/http-foundation/Session/Session.php
}
/**
* Gets the flashbag interface.
*
* @return FlashBagInterface
*/
public function getFlashBag()
{
return $this->getBag($this->flashName);
}
/**
* Gets the attributebag interface.
*
* Note that this method was added to help with IDE autocompletion.
*/
private function getAttributeBag(): AttributeBagInterface
{
return $this->getBag($this->attributeName);
}
}
Arguments
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/vendor/symfony/http-foundation/Session/Session.php
*/
public function start()
{
return $this->storage->start();
}
/**
* {@inheritdoc}
*/
public function has(string $name)
{
return $this->getAttributeBag()->has($name);
}
/**
* {@inheritdoc}
*/
public function get(string $name, $default = null)
{
return $this->getAttributeBag()->get($name, $default);
}
/**
* {@inheritdoc}
*/
public function set(string $name, $value)
{
$this->getAttributeBag()->set($name, $value);
}
/**
* {@inheritdoc}
*/
public function all()
{
return $this->getAttributeBag()->all();
}
/**
* {@inheritdoc}
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Support/Facade/Facade.php
* Handle dynamic, static calls to the object.
*
* @param string $method
* @param array $args
*
* @return mixed
*/
public static function __callStatic($method, $args)
{
$instance = static::resolveFacadeInstance(static::getFacadeAccessor());
if (!method_exists($instance, $method) && !method_exists($instance, '__call')) {
throw new \Exception(t('Invalid Method on class %s: %s.', get_class($instance), $method));
}
switch (count($args)) {
case 0:
return $instance->$method();
case 1:
return $instance->$method($args[0]);
case 2:
return $instance->$method($args[0], $args[1]);
case 3:
return $instance->$method($args[0], $args[1], $args[2]);
case 4:
return $instance->$method($args[0], $args[1], $args[2], $args[3]);
default:
return call_user_func_array(array($instance, $method), $args);
}
}
}
Arguments
/datadrive/artplumb/public_html/packages/cookies_disclosure/controllers/cookiesDisclosure.php
self::$cfg['font_size'] = Config::get('c5hub.cookies_disclosure.font_size');
self::$cfg['tracking_codes'] = Config::get('c5hub.cookies_disclosure.tracking_codes');
self::$cfg['code_position'] = Config::get('c5hub.cookies_disclosure.code_position');
self::$cfg['button_background_color'] = Config::get('c5hub.cookies_disclosure.button_background_color');
self::$cfg['button_font_color'] = Config::get('c5hub.cookies_disclosure.button_font_color');
if(self::$cfg['disclosure_enabled']) {
// Cookie disclosure required
$u = new User();
$c = Page::getCurrentPage();
if(is_object($c)) {
if(!$c->isEditMode() && !$u->isLoggedIn()) {
// Do not run in edit mode or for logged in users
if(cookie::has('cookiesDirective')) {
// Cookies accepted
self::injectTrackingCodes();
} else {
// Not accepted so in disclosure mode
if(intVal(session::get('disclosureCount')) < self::$cfg['display_limit'] || self::$cfg['display_limit'] == 0) {
// Below display limit, continue
$html = core::make('helper/html');
$v = view::getInstance();
$v->requireAsset('javascript', 'jquery');
$v->requireAsset('javascript', 'cookiesDirective');
// Swap out [url][/url] tokens is message
self::$cfg['display_message'] = self::urlTokenReplace();
// For 'implied' consent mode tracking code scripts not held back
if(!self::$cfg['explicit_consent']) {
self::injectTrackingCodes();
}
// Inject customized CSS for button
$v->addHeaderItem(self::buildButtonCSS());
// Inject the JavaScript config object or jquery.cookiesdirective.js
$v->addFooterItem(self::buildJavaScriptConfig());
Arguments
"get"
array:1 [
0 => "disclosureCount"
]
/datadrive/artplumb/public_html/packages/cookies_disclosure/controller.php
Config::save('c5hub.cookies_disclosure.button_font_color', 'rgb(255, 255, 255)');
Config::save('c5hub.cookies_disclosure.button_background_color', 'rgb(91, 192, 222)');
}
public function uninstall() {
$pkg = parent::uninstall();
}
public function on_start() {
// Register Assets
$al = AssetList::getInstance();
$al->register(
'javascript', 'cookiesDirective', 'js/jquery.cookiesdirective.js',
array('version' => '1.0.0', 'position' => Asset::ASSET_POSITION_HEADER, 'minify' => false, 'combine' => false), $this
);
// Extend Events
Events::addListener(
'on_before_render', function() {
cookiesDisclosure::init();
}
);
}
}
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/vendor/symfony/event-dispatcher/EventDispatcher.php
/**
* Triggers the listeners of an event.
*
* This method can be overridden to add functionality that is executed
* for each listener.
*
* @param callable[] $listeners The event listeners
* @param string $eventName The name of the event to dispatch
* @param object $event The event object to pass to the event handlers/listeners
*/
protected function callListeners(iterable $listeners, string $eventName, object $event)
{
$stoppable = $event instanceof StoppableEventInterface;
foreach ($listeners as $listener) {
if ($stoppable && $event->isPropagationStopped()) {
break;
}
$listener($event, $eventName, $this);
}
}
/**
* Sorts the internal list of listeners for the given event by priority.
*/
private function sortListeners(string $eventName)
{
krsort($this->listeners[$eventName]);
$this->sorted[$eventName] = [];
foreach ($this->listeners[$eventName] as &$listeners) {
foreach ($listeners as $k => &$listener) {
if (\is_array($listener) && isset($listener[0]) && $listener[0] instanceof \Closure && 2 >= \count($listener)) {
$listener[0] = $listener[0]();
$listener[1] = $listener[1] ?? '__invoke';
}
$this->sorted[$eventName][] = $listener;
}
}
Arguments
Symfony\Component\EventDispatcher\GenericEvent {#3141}
"on_before_render"
Symfony\Component\EventDispatcher\EventDispatcher {#101
-listeners: array:16 [
"Symfony\Component\Messenger\Event\WorkerStartedEvent" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Concrete\Core\Messenger\MessengerEventSubscriber {#99}
1 => "handleWorkerStartedEvent"
]
]
]
"Symfony\Component\Messenger\Event\WorkerMessageFailedEvent" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Concrete\Core\Messenger\MessengerEventSubscriber {#99}
1 => "handleWorkerMessageFailedEvent"
]
]
]
"on_after_user_deactivate" => array:1 [
0 => array:1 [
0 => Closure($e) {#329 …4}
]
]
"on_user_change_password" => array:1 [
0 => array:2 [
0 => Closure($event) {#330 …4}
1 => array:2 [
0 => Concrete\Core\User\LogSubscriber {#319}
1 => "onUserChangePassword"
]
]
]
"on_user_activate" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Concrete\Core\User\LogSubscriber {#319}
1 => "onUserActivate"
]
]
]
"on_user_add" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Concrete\Core\User\LogSubscriber {#319}
1 => "onUserAdd"
]
]
]
"on_user_deactivate" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Concrete\Core\User\LogSubscriber {#319}
1 => "onUserDeactivate"
]
]
]
"on_user_deleted" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Concrete\Core\User\LogSubscriber {#319}
1 => "onUserDeleted"
]
]
]
"on_user_reset_password" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Concrete\Core\User\LogSubscriber {#319}
1 => "onUserResetPassword"
]
]
]
"on_user_update" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Concrete\Core\User\LogSubscriber {#319}
1 => "onUserUpdate"
]
]
]
"on_group_add" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Concrete\Core\User\Group\LogSubscriber {#324}
1 => "onGroupAdd"
]
]
]
"on_group_update" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Concrete\Core\User\Group\LogSubscriber {#324}
1 => "onGroupUpdate"
]
]
]
"on_group_delete" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Concrete\Core\User\Group\LogSubscriber {#324}
1 => "onGroupDelete"
]
]
]
"on_user_enter_group" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Concrete\Core\User\Group\LogSubscriber {#324}
1 => "onUserEnterGroup"
]
]
]
"on_user_exit_group" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Concrete\Core\User\Group\LogSubscriber {#324}
1 => "onUserExitGroup"
]
]
]
"on_before_render" => array:1 [
0 => array:3 [
0 => Closure($event) {#1409 …4}
1 => Closure() {#1422 …4}
2 => Closure() {#1438 …4}
]
]
]
-sorted: []
-optimized: array:1 [
"on_before_render" => array:3 [
0 => Closure($event) {#1409 …4}
1 => Closure() {#1422 …4}
2 => Closure() {#1438 …4}
]
]
}
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/vendor/symfony/event-dispatcher/EventDispatcher.php
if (__CLASS__ === static::class) {
$this->optimized = [];
}
}
/**
* {@inheritdoc}
*/
public function dispatch(object $event, string $eventName = null): object
{
$eventName = $eventName ?? \get_class($event);
if (null !== $this->optimized) {
$listeners = $this->optimized[$eventName] ?? (empty($this->listeners[$eventName]) ? [] : $this->optimizeListeners($eventName));
} else {
$listeners = $this->getListeners($eventName);
}
if ($listeners) {
$this->callListeners($listeners, $eventName, $event);
}
return $event;
}
/**
* {@inheritdoc}
*/
public function getListeners(string $eventName = null)
{
if (null !== $eventName) {
if (empty($this->listeners[$eventName])) {
return [];
}
if (!isset($this->sorted[$eventName])) {
$this->sortListeners($eventName);
}
return $this->sorted[$eventName];
Arguments
array:3 [
0 => Closure($event) {#1409 …4}
1 => Closure() {#1422 …4}
2 => Closure() {#1438 …4}
]
"on_before_render"
Symfony\Component\EventDispatcher\GenericEvent {#3141}
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Events/EventDispatcher.php
/**
* @var SymfonyEventDispatcher
*/
protected $eventDispatcher;
public function __construct(SymfonyEventDispatcher $eventDispatcher)
{
$this->eventDispatcher = $eventDispatcher;
}
/**
* {@inheritdoc}
*/
public function dispatch($eventName, object $event = null)
{
if (null === $event) {
$event = new Event();
}
return $this->eventDispatcher->dispatch($event, $eventName);
}
public function __call($name, $arguments)
{
return $this->eventDispatcher->$name(...$arguments);
}
/**
* @return SymfonyEventDispatcher
*/
public function getEventDispatcher(): SymfonyEventDispatcher
{
return $this->eventDispatcher;
}
}
Arguments
Symfony\Component\EventDispatcher\GenericEvent {#3141}
"on_before_render"
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Support/Facade/Facade.php
* @param array $args
*
* @return mixed
*/
public static function __callStatic($method, $args)
{
$instance = static::resolveFacadeInstance(static::getFacadeAccessor());
if (!method_exists($instance, $method) && !method_exists($instance, '__call')) {
throw new \Exception(t('Invalid Method on class %s: %s.', get_class($instance), $method));
}
switch (count($args)) {
case 0:
return $instance->$method();
case 1:
return $instance->$method($args[0]);
case 2:
return $instance->$method($args[0], $args[1]);
case 3:
return $instance->$method($args[0], $args[1], $args[2]);
case 4:
return $instance->$method($args[0], $args[1], $args[2], $args[3]);
default:
return call_user_func_array(array($instance, $method), $args);
}
}
}
Arguments
"on_before_render"
Symfony\Component\EventDispatcher\GenericEvent {#3141}
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/View/View.php
}
$this->setViewTemplate($env->getPath(DIRNAME_THEMES.'/'.$this->themeHandle.'/'.$templateFile, $this->themePkgHandle));
}
}
public function startRender()
{
$event = new \Symfony\Component\EventDispatcher\GenericEvent();
$event->setArgument('view', $this);
Events::dispatch('on_start', $event);
parent::startRender();
}
protected function onBeforeGetContents()
{
$this->themeObject->registerAssets();
$event = new \Symfony\Component\EventDispatcher\GenericEvent();
$event->setArgument('view', $this);
Events::dispatch('on_before_render', $event);
}
public function renderViewContents($scopeItems)
{
$contents = '';
// Render the main view file
if ($this->innerContentFile) {
$contents = $this->renderInnerContents($scopeItems);
}
// Render the template around it
if (file_exists($this->template)) {
$contents = $this->renderTemplate($scopeItems, $contents);
}
return $contents;
}
/**
Arguments
"dispatch"
array:2 [
0 => "on_before_render"
1 => Symfony\Component\EventDispatcher\GenericEvent {#3141}
]
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/View/View.php
$innerContent = ob_get_contents();
ob_end_clean();
return $innerContent;
}
/**
* Render the file set to $this->template
* @param $scopeItems
* @return string
*/
protected function renderTemplate($scopeItems, $innerContent)
{
// Extract the items into the current scope
extract($scopeItems);
ob_start();
// Fire a `before` event
$this->onBeforeGetContents();
include $this->template;
// Fire an `after` event
$this->onAfterGetContents();
$contents = ob_get_contents();
ob_end_clean();
return $contents;
}
public function finishRender($contents)
{
$event = new \Symfony\Component\EventDispatcher\GenericEvent();
$event->setArgument('view', $this);
Events::dispatch('on_render_complete', $event);
return $contents;
}
/**
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/View/View.php
protected function onBeforeGetContents()
{
$this->themeObject->registerAssets();
$event = new \Symfony\Component\EventDispatcher\GenericEvent();
$event->setArgument('view', $this);
Events::dispatch('on_before_render', $event);
}
public function renderViewContents($scopeItems)
{
$contents = '';
// Render the main view file
if ($this->innerContentFile) {
$contents = $this->renderInnerContents($scopeItems);
}
// Render the template around it
if (file_exists($this->template)) {
$contents = $this->renderTemplate($scopeItems, $contents);
}
return $contents;
}
/**
* Render the file set to $this->innerContentFile
* @param $scopeItems
* @return string
*/
protected function renderInnerContents($scopeItems)
{
// Extract the items into the current scope
extract($scopeItems);
ob_start();
include $this->innerContentFile;
$innerContent = ob_get_contents();
ob_end_clean();
Arguments
array:5 [
"html" => Concrete\Core\Html\Service\Html {#3068}
"view" => Concrete\Core\Page\View\PageView {#3061}
"controller" => Concrete\Controller\SinglePage\PageNotFound {#3063}
"c" => Concrete\Core\Page\Page {#3056}
"theme" => Application\Theme\Opco3000Theme\PageTheme {#3064}
]
"""
<h1 class="error">Page Not Found</h1>\n
\n
No page could be found at this address.\n
\n
<a href="/">Back to Home</a>.
"""
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/View/AbstractView.php
$helpers = $this->controller->getHelperObjects();
$return = array_merge($this->scopeItems, $sets, $helpers);
} else {
$return = $this->scopeItems;
}
$return['view'] = $this;
$return['controller'] = $this->controller;
return $return;
}
public function render($state = false)
{
if ($this instanceof View) {
$this->setRequestInstance($this);
}
$this->start($state);
$this->setupRender();
$this->startRender();
$scopeItems = $this->getScopeItems();
$contents = $this->renderViewContents($scopeItems);
$contents = $this->postProcessViewContents($contents);
$response = $this->finishRender($contents);
if ($this instanceof View) {
$this->revertRequestInstance();
}
return $response;
}
public function renderViewContents($scopeItems)
{
if (file_exists($this->template)) {
extract($scopeItems);
ob_start();
$this->onBeforeGetContents();
include $this->template;
$this->onAfterGetContents();
$contents = ob_get_contents();
ob_end_clean();
Arguments
array:5 [
"html" => Concrete\Core\Html\Service\Html {#3068}
"view" => Concrete\Core\Page\View\PageView {#3061}
"controller" => Concrete\Controller\SinglePage\PageNotFound {#3063}
"c" => Concrete\Core\Page\Page {#3056}
"theme" => Application\Theme\Opco3000Theme\PageTheme {#3064}
]
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/controllers/single_page/page_not_found.php
<?php
namespace Concrete\Controller\SinglePage;
use Concrete\Core\Http\Response;
use Concrete\Core\Page\Controller\PageController;
use Events;
class PageNotFound extends PageController
{
public function validateRequest()
{
return true;
}
public function view()
{
$view = $this->getViewObject();
$contents = $view->render();
Events::dispatch('on_page_not_found');
return new Response($contents, 404);
}
public function __call($method, $arguments)
{
if (method_exists($this, $method)) {
return call_user_func_array(array($this, $method), $arguments);
}
return $this->view();
}
}
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Controller/AbstractController.php
public function runTask($action, $parameters)
{
$this->runAction($action, $parameters);
}
/**
* Perform an action of this controller (if shouldRunControllerTask returns true).
*
* @param string $action the action to be performed
* @param array $parameters the action parameters
*
* @return mixed in case the action is executed, you'll receive the result of the action, or NULL otherwise
*/
public function runAction($action, $parameters = [])
{
$this->action = $action;
$this->parameters = $parameters;
if (is_callable([$this, $action])) {
if ($this->shouldRunControllerTask()) {
return call_user_func_array([$this, $action], $parameters);
}
}
}
/**
* Get the whole $_REQUEST array or a specific requested value.
*
* @param string|null $key set to null to get the whole $_REQUEST array, or a string to get a specific value in $_GET or in $_POST
*
* @return mixed
*/
public function request($key = null)
{
return Request::request($key);
}
/**
* Dispatches a command to the command bus.
* @param mixed $command
*/
Arguments
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Controller/AbstractController.php
public function runTask($action, $parameters)
{
$this->runAction($action, $parameters);
}
/**
* Perform an action of this controller (if shouldRunControllerTask returns true).
*
* @param string $action the action to be performed
* @param array $parameters the action parameters
*
* @return mixed in case the action is executed, you'll receive the result of the action, or NULL otherwise
*/
public function runAction($action, $parameters = [])
{
$this->action = $action;
$this->parameters = $parameters;
if (is_callable([$this, $action])) {
if ($this->shouldRunControllerTask()) {
return call_user_func_array([$this, $action], $parameters);
}
}
}
/**
* Get the whole $_REQUEST array or a specific requested value.
*
* @param string|null $key set to null to get the whole $_REQUEST array, or a string to get a specific value in $_GET or in $_POST
*
* @return mixed
*/
public function request($key = null)
{
return Request::request($key);
}
/**
* Dispatches a command to the command bus.
* @param mixed $command
*/
Arguments
array:2 [
0 => Concrete\Controller\SinglePage\PageNotFound {#3063}
1 => "view"
]
array:2 [
0 => "testimonials"
1 => "feed"
]
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Http/ResponseFactory.php
if ($controller instanceof PageController) {
if ($controller->isReplaced()) {
return $this->controller($controller->getReplacement(), $code, $headers);
}
$controller->setupRequestActionAndParameters($request);
$response = $controller->validateRequest();
// If validaterequest returned a response
if ($response instanceof \Symfony\Component\HttpFoundation\Response) {
return $response;
} else {
// If validateRequest did not return true
if ($response == false) {
return $this->notFound('', Response::HTTP_NOT_FOUND, $headers);
}
}
$requestTask = $controller->getRequestAction();
$requestParameters = $controller->getRequestActionParameters();
$response = $controller->runAction($requestTask, $requestParameters);
if ($response instanceof \Symfony\Component\HttpFoundation\Response) {
return $response;
}
if ($controller->isReplaced()) {
return $this->controller($controller->getReplacement(), $code, $headers);
}
} else {
if ($response = $controller->runAction('view')) {
return $response;
}
}
$view = $controller->getViewObject();
// Mobile theme
if ($this->config->get('concrete.misc.mobile_theme_id') > 0) {
$md = $this->app->make(MobileDetect::class);
if ($md->isMobile()) {
$mobileTheme = Theme::getByID($this->app->config->get('concrete.misc.mobile_theme_id'));
if ($mobileTheme instanceof Theme) {
Arguments
"view"
array:2 [
0 => "testimonials"
1 => "feed"
]
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Http/ResponseFactory.php
$this->localization->pushActiveContext(Localization::CONTEXT_SITE);
$responseData = [
'error' => t('Page not found'),
'errors' => [t('Page not found')],
];
$this->localization->popActiveContext();
return $this->json($responseData, $code, $headers);
}
$item = '/page_not_found';
$c = Page::getByPath($item);
if (is_object($c) && !$c->isError()) {
// Display not found
$dl = $this->app->make('multilingual/detector');
$dl->setupSiteInterfaceLocalization($c);
$this->request->setCurrentPage($c);
return $this->controller($c->getPageController(), $code, $headers);
}
$cnt = $this->app->make(PageForbidden::class);
return $this->controller($cnt, $code, $headers);
}
/**
* {@inheritdoc}
*/
public function error($content, $code = Response::HTTP_INTERNAL_SERVER_ERROR, $headers = [])
{
return $this->create($content, $code, $headers);
}
/**
* {@inheritdoc}
*/
public function forbidden($requestUrl, $code = Response::HTTP_FORBIDDEN, $headers = [])
{
Arguments
Concrete\Controller\SinglePage\PageNotFound {#3063}
404
[]
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Http/ResponseFactory.php
$request = $this->request;
if ($response = $controller->on_start()) {
return $response;
}
if ($controller instanceof PageController) {
if ($controller->isReplaced()) {
return $this->controller($controller->getReplacement(), $code, $headers);
}
$controller->setupRequestActionAndParameters($request);
$response = $controller->validateRequest();
// If validaterequest returned a response
if ($response instanceof \Symfony\Component\HttpFoundation\Response) {
return $response;
} else {
// If validateRequest did not return true
if ($response == false) {
return $this->notFound('', Response::HTTP_NOT_FOUND, $headers);
}
}
$requestTask = $controller->getRequestAction();
$requestParameters = $controller->getRequestActionParameters();
$response = $controller->runAction($requestTask, $requestParameters);
if ($response instanceof \Symfony\Component\HttpFoundation\Response) {
return $response;
}
if ($controller->isReplaced()) {
return $this->controller($controller->getReplacement(), $code, $headers);
}
} else {
if ($response = $controller->runAction('view')) {
return $response;
}
}
$view = $controller->getViewObject();
Arguments
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Http/ResponseFactory.php
$this->app['director']->dispatch('on_page_view', $pe);
// Core menu items
$item = new RelationListItem();
$menu = $this->app->make('helper/concrete/ui/menu');
$menu->addMenuItem($item);
// Running processes item
$item = new RunningProcessesItem();
$menu->addMenuItem($item);
// Multisite item
$item = new SiteListItem();
$menu->addMenuItem($item);
$controller = $collection->getPageController();
// we update the current page with the one bound to this controller.
$collection->setController($controller);
return $this->controller($controller);
}
private function collectionNotFound(Collection $collection, Request $request, array $headers)
{
// if we don't have a path and we're doing cID, then this automatically fires a 404.
if (!$request->getPath() && $request->get('cID')) {
return $this->notFound('', Response::HTTP_NOT_FOUND, $headers);
}
// let's test to see if this is, in fact, the home page,
// and we're routing arguments onto it (which is screwing up the path.)
$home = Page::getByID(Page::getHomePageID());
$request->setCurrentPage($home);
$homeController = $home->getPageController();
$homeController->setupRequestActionAndParameters($request);
$response = $homeController->validateRequest();
if ($response instanceof \Symfony\Component\HttpFoundation\Response) {
return $response;
} elseif ($response === true) {
Arguments
Concrete\Core\Page\Controller\PageController {#1832}
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Http/DefaultDispatcher.php
new DispatcherDelegate($dispatcher)
);
$stack->setApplication($this->app);
foreach($route->getMiddlewares() as $middleware) {
if (is_string($middleware->getMiddleware())) {
$inflatedMiddleware = $this->app->make($middleware->getMiddleware());
} else {
$inflatedMiddleware = $middleware->getMiddleware();
}
$stack = $stack->withMiddleware(
$inflatedMiddleware,
$middleware->getPriority()
);
}
return $stack->process($request);
} catch (ResourceNotFoundException $e) {
} catch (MethodNotAllowedException $e) {
}
$c = \Page::getFromRequest($request);
$response = $this->app->make(ResponseFactoryInterface::class)->collection($c);
return $response;
}
/**
* @param \Symfony\Component\Routing\RouteCollection $routes
* @param string $path
*
* @return \Symfony\Component\Routing\RouteCollection
*/
private function filterRouteCollectionForPath(RouteCollection $routes, $path)
{
$result = new RouteCollection();
foreach ($routes->getResources() as $resource) {
$result->addResource($resource);
}
foreach ($routes->all() as $name => $route) {
$routePath = $route->getPath();
$p = strpos($routePath, '{');
$skip = false;
Arguments
Concrete\Core\Page\Page {#1760}
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Http/DefaultDispatcher.php
/**
* @param \Symfony\Component\HttpFoundation\Request $request
*
* @return SymfonyResponse
*/
public function dispatch(SymfonyRequest $request)
{
$path = rawurldecode($request->getPathInfo());
if (substr($path, 0, 3) == '../' || substr($path, -3) == '/..' || strpos($path, '/../') ||
substr($path, 0, 3) == '..\\' || substr($path, -3) == '\\..' || strpos($path, '\\..\\')) {
throw new UserMessageException(t('Invalid path traversal. Please make this request with a valid HTTP client.'));
}
$response = null;
if ($this->app->isInstalled()) {
$response = $this->getEarlyDispatchResponse();
}
if ($response === null) {
$response = $this->handleDispatch($request);
}
return $response;
}
private function getEarlyDispatchResponse()
{
$validator = $this->app->make(SessionValidator::class);
if ($validator->hasActiveSession()) {
$session = $this->app['session'];
if (!$session->has('uID')) {
User::verifyAuthTypeCookie();
}
// User may have been logged in, so lets check status again.
if ($session->has('uID') && $session->get('uID') > 0 && $response = $this->validateUser()) {
return $response;
}
}
}
Arguments
Concrete\Core\Http\Request {#1574
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#1728}
+request: Symfony\Component\HttpFoundation\InputBag {#1227}
+query: Symfony\Component\HttpFoundation\InputBag {#1575}
+server: Symfony\Component\HttpFoundation\ServerBag {#1731}
+files: Symfony\Component\HttpFoundation\FileBag {#1730}
+cookies: Symfony\Component\HttpFoundation\InputBag {#1729}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#1732}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: null
#pathInfo: "/testimonials/feed"
#requestUri: "/testimonials/feed"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#hasCustomRequestUser: null
#customRequestUser: null
#customRequestDateTime: null
#c: Concrete\Core\Page\Page {#3056}
basePath: ""
format: "html"
}
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Http/Middleware/DispatcherDelegate.php
private $dispatcher;
/**
* DispatcherFrame constructor.
* @param \Concrete\Core\Http\DispatcherInterface $dispatcher
*/
public function __construct(DispatcherInterface $dispatcher)
{
$this->dispatcher = $dispatcher;
}
/**
* Dispatch the next available middleware and return the response.
*
* @param Request $request
* @return Response
*/
public function next(Request $request)
{
return $this->dispatcher->dispatch($request);
}
}
Arguments
Concrete\Core\Http\Request {#1574
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#1728}
+request: Symfony\Component\HttpFoundation\InputBag {#1227}
+query: Symfony\Component\HttpFoundation\InputBag {#1575}
+server: Symfony\Component\HttpFoundation\ServerBag {#1731}
+files: Symfony\Component\HttpFoundation\FileBag {#1730}
+cookies: Symfony\Component\HttpFoundation\InputBag {#1729}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#1732}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: null
#pathInfo: "/testimonials/feed"
#requestUri: "/testimonials/feed"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#hasCustomRequestUser: null
#customRequestUser: null
#customRequestDateTime: null
#c: Concrete\Core\Page\Page {#3056}
basePath: ""
format: "html"
}
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Http/Middleware/FrameOptionsMiddleware.php
private $config;
/**
* @var \Concrete\Core\Utility\Service\Validation\Strings
*/
private $stringValidator;
public function __construct(Repository $config, Strings $stringValidator)
{
$this->config = $config;
$this->stringValidator = $stringValidator;
}
/**
* @param \Concrete\Core\Http\Middleware\DelegateInterface $frame
* @return Response
*/
public function process(Request $request, DelegateInterface $frame)
{
$response = $frame->next($request);
if ($response->headers->has('X-Frame-Options') === false) {
$x_frame_options = $this->config->get('concrete.security.misc.x_frame_options');
if ($this->stringValidator->notempty($x_frame_options)) {
$response->headers->set('X-Frame-Options', $x_frame_options);
}
}
return $response;
}
}
Arguments
Concrete\Core\Http\Request {#1574
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#1728}
+request: Symfony\Component\HttpFoundation\InputBag {#1227}
+query: Symfony\Component\HttpFoundation\InputBag {#1575}
+server: Symfony\Component\HttpFoundation\ServerBag {#1731}
+files: Symfony\Component\HttpFoundation\FileBag {#1730}
+cookies: Symfony\Component\HttpFoundation\InputBag {#1729}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#1732}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: null
#pathInfo: "/testimonials/feed"
#requestUri: "/testimonials/feed"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#hasCustomRequestUser: null
#customRequestUser: null
#customRequestDateTime: null
#c: Concrete\Core\Page\Page {#3056}
basePath: ""
format: "html"
}
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Http/Middleware/MiddlewareDelegate.php
public function __construct(
MiddlewareInterface $middleware,
DelegateInterface $nextDelegate,
HttpFoundationFactory $foundationFactory
) {
$this->middleware = $middleware;
$this->nextDelegate = $nextDelegate;
$this->foundationFactory = $foundationFactory;
}
/**
* Dispatch the next available middleware and return the response.
*
* @param Request $request
* @return Response
*/
public function next(Request $request)
{
$response = $this->middleware->process($request, $this->nextDelegate);
// Negotiate PSR7 responses
if ($response instanceof ResponseInterface) {
return $this->foundationFactory->createResponse($response);
}
return $response;
}
}
Arguments
Concrete\Core\Http\Request {#1574
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#1728}
+request: Symfony\Component\HttpFoundation\InputBag {#1227}
+query: Symfony\Component\HttpFoundation\InputBag {#1575}
+server: Symfony\Component\HttpFoundation\ServerBag {#1731}
+files: Symfony\Component\HttpFoundation\FileBag {#1730}
+cookies: Symfony\Component\HttpFoundation\InputBag {#1729}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#1732}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: null
#pathInfo: "/testimonials/feed"
#requestUri: "/testimonials/feed"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#hasCustomRequestUser: null
#customRequestUser: null
#customRequestDateTime: null
#c: Concrete\Core\Page\Page {#3056}
basePath: ""
format: "html"
}
Concrete\Core\Http\Middleware\DispatcherDelegate {#1736}
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Http/Middleware/StrictTransportSecurityMiddleware.php
/**
* @var Strings
*/
private $stringValidator;
public function __construct(Repository $config, Strings $stringValidator)
{
$this->config = $config;
$this->stringValidator = $stringValidator;
}
/**
* @param Request $request
* @param DelegateInterface $frame
*
* @return Response
*/
public function process(Request $request, DelegateInterface $frame)
{
$response = $frame->next($request);
if ($response->headers->has('Strict-Transport-Security') === false) {
$x_frame_options = $this->config->get('concrete.security.misc.strict_transport_security');
if ($this->stringValidator->notempty($x_frame_options)) {
$response->headers->set('Strict-Transport-Security', $x_frame_options);
}
}
return $response;
}
}
Arguments
Concrete\Core\Http\Request {#1574
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#1728}
+request: Symfony\Component\HttpFoundation\InputBag {#1227}
+query: Symfony\Component\HttpFoundation\InputBag {#1575}
+server: Symfony\Component\HttpFoundation\ServerBag {#1731}
+files: Symfony\Component\HttpFoundation\FileBag {#1730}
+cookies: Symfony\Component\HttpFoundation\InputBag {#1729}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#1732}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: null
#pathInfo: "/testimonials/feed"
#requestUri: "/testimonials/feed"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#hasCustomRequestUser: null
#customRequestUser: null
#customRequestDateTime: null
#c: Concrete\Core\Page\Page {#3056}
basePath: ""
format: "html"
}
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Http/Middleware/MiddlewareDelegate.php
public function __construct(
MiddlewareInterface $middleware,
DelegateInterface $nextDelegate,
HttpFoundationFactory $foundationFactory
) {
$this->middleware = $middleware;
$this->nextDelegate = $nextDelegate;
$this->foundationFactory = $foundationFactory;
}
/**
* Dispatch the next available middleware and return the response.
*
* @param Request $request
* @return Response
*/
public function next(Request $request)
{
$response = $this->middleware->process($request, $this->nextDelegate);
// Negotiate PSR7 responses
if ($response instanceof ResponseInterface) {
return $this->foundationFactory->createResponse($response);
}
return $response;
}
}
Arguments
Concrete\Core\Http\Request {#1574
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#1728}
+request: Symfony\Component\HttpFoundation\InputBag {#1227}
+query: Symfony\Component\HttpFoundation\InputBag {#1575}
+server: Symfony\Component\HttpFoundation\ServerBag {#1731}
+files: Symfony\Component\HttpFoundation\FileBag {#1730}
+cookies: Symfony\Component\HttpFoundation\InputBag {#1729}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#1732}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: null
#pathInfo: "/testimonials/feed"
#requestUri: "/testimonials/feed"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#hasCustomRequestUser: null
#customRequestUser: null
#customRequestDateTime: null
#c: Concrete\Core\Page\Page {#3056}
basePath: ""
format: "html"
}
Concrete\Core\Http\Middleware\MiddlewareDelegate {#1743}
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Http/Middleware/ContentSecurityPolicyMiddleware.php
/**
* @var Strings
*/
private $stringValidator;
public function __construct(Repository $config, Strings $stringValidator)
{
$this->config = $config;
$this->stringValidator = $stringValidator;
}
/**
* @param Request $request
* @param DelegateInterface $frame
*
* @return Response
*/
public function process(Request $request, DelegateInterface $frame)
{
$response = $frame->next($request);
if ($response->headers->has('Content-Security-Policy') === false) {
$csp = $this->config->get('concrete.security.misc.content_security_policy');
if ((is_array($csp) && count($csp) > 0) || $this->stringValidator->notempty($csp)) {
$response->headers->set('Content-Security-Policy', $csp);
}
}
return $response;
}
}
Arguments
Concrete\Core\Http\Request {#1574
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#1728}
+request: Symfony\Component\HttpFoundation\InputBag {#1227}
+query: Symfony\Component\HttpFoundation\InputBag {#1575}
+server: Symfony\Component\HttpFoundation\ServerBag {#1731}
+files: Symfony\Component\HttpFoundation\FileBag {#1730}
+cookies: Symfony\Component\HttpFoundation\InputBag {#1729}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#1732}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: null
#pathInfo: "/testimonials/feed"
#requestUri: "/testimonials/feed"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#hasCustomRequestUser: null
#customRequestUser: null
#customRequestDateTime: null
#c: Concrete\Core\Page\Page {#3056}
basePath: ""
format: "html"
}
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Http/Middleware/MiddlewareDelegate.php
public function __construct(
MiddlewareInterface $middleware,
DelegateInterface $nextDelegate,
HttpFoundationFactory $foundationFactory
) {
$this->middleware = $middleware;
$this->nextDelegate = $nextDelegate;
$this->foundationFactory = $foundationFactory;
}
/**
* Dispatch the next available middleware and return the response.
*
* @param Request $request
* @return Response
*/
public function next(Request $request)
{
$response = $this->middleware->process($request, $this->nextDelegate);
// Negotiate PSR7 responses
if ($response instanceof ResponseInterface) {
return $this->foundationFactory->createResponse($response);
}
return $response;
}
}
Arguments
Concrete\Core\Http\Request {#1574
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#1728}
+request: Symfony\Component\HttpFoundation\InputBag {#1227}
+query: Symfony\Component\HttpFoundation\InputBag {#1575}
+server: Symfony\Component\HttpFoundation\ServerBag {#1731}
+files: Symfony\Component\HttpFoundation\FileBag {#1730}
+cookies: Symfony\Component\HttpFoundation\InputBag {#1729}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#1732}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: null
#pathInfo: "/testimonials/feed"
#requestUri: "/testimonials/feed"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#hasCustomRequestUser: null
#customRequestUser: null
#customRequestDateTime: null
#c: Concrete\Core\Page\Page {#3056}
basePath: ""
format: "html"
}
Concrete\Core\Http\Middleware\MiddlewareDelegate {#1745}
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Http/Middleware/CookieMiddleware.php
* @var \Concrete\Core\Cookie\ResponseCookieJar
*/
private $responseCookieJar;
/**
* @param \Concrete\Core\Cookie\ResponseCookieJar $responseCookieJar
*/
public function __construct(ResponseCookieJar $responseCookieJar)
{
$this->responseCookieJar = $responseCookieJar;
}
/**
* {@inheritdoc}
*
* @see \Concrete\Core\Http\Middleware\MiddlewareInterface::process()
*/
public function process(Request $request, DelegateInterface $frame)
{
$response = $frame->next($request);
$cleared = $this->responseCookieJar->getClearedCookies();
foreach ($cleared as $cookie) {
$response->headers->clearCookie($cookie, DIR_REL . '/');
}
$cookies = $this->responseCookieJar->getCookies();
foreach ($cookies as $cookie) {
$response->headers->setCookie($cookie);
}
return $response;
}
}
Arguments
Concrete\Core\Http\Request {#1574
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#1728}
+request: Symfony\Component\HttpFoundation\InputBag {#1227}
+query: Symfony\Component\HttpFoundation\InputBag {#1575}
+server: Symfony\Component\HttpFoundation\ServerBag {#1731}
+files: Symfony\Component\HttpFoundation\FileBag {#1730}
+cookies: Symfony\Component\HttpFoundation\InputBag {#1729}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#1732}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: null
#pathInfo: "/testimonials/feed"
#requestUri: "/testimonials/feed"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#hasCustomRequestUser: null
#customRequestUser: null
#customRequestDateTime: null
#c: Concrete\Core\Page\Page {#3056}
basePath: ""
format: "html"
}
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Http/Middleware/MiddlewareDelegate.php
public function __construct(
MiddlewareInterface $middleware,
DelegateInterface $nextDelegate,
HttpFoundationFactory $foundationFactory
) {
$this->middleware = $middleware;
$this->nextDelegate = $nextDelegate;
$this->foundationFactory = $foundationFactory;
}
/**
* Dispatch the next available middleware and return the response.
*
* @param Request $request
* @return Response
*/
public function next(Request $request)
{
$response = $this->middleware->process($request, $this->nextDelegate);
// Negotiate PSR7 responses
if ($response instanceof ResponseInterface) {
return $this->foundationFactory->createResponse($response);
}
return $response;
}
}
Arguments
Concrete\Core\Http\Request {#1574
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#1728}
+request: Symfony\Component\HttpFoundation\InputBag {#1227}
+query: Symfony\Component\HttpFoundation\InputBag {#1575}
+server: Symfony\Component\HttpFoundation\ServerBag {#1731}
+files: Symfony\Component\HttpFoundation\FileBag {#1730}
+cookies: Symfony\Component\HttpFoundation\InputBag {#1729}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#1732}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: null
#pathInfo: "/testimonials/feed"
#requestUri: "/testimonials/feed"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#hasCustomRequestUser: null
#customRequestUser: null
#customRequestDateTime: null
#c: Concrete\Core\Page\Page {#3056}
basePath: ""
format: "html"
}
Concrete\Core\Http\Middleware\MiddlewareDelegate {#1747}
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Http/Middleware/ApplicationMiddleware.php
* Middleware for applying state changes to the application
* @package Concrete\Core\Http\Middleware
*/
class ApplicationMiddleware implements MiddlewareInterface, ApplicationAwareInterface
{
use ApplicationAwareTrait;
/**
* Apply the request instance to the request singleton
* @param \Symfony\Component\HttpFoundation\Request $request
* @param \Concrete\Core\Http\Middleware\DelegateInterface $frame
* @return \Symfony\Component\HttpFoundation\Response
*/
public function process(Request $request, DelegateInterface $frame)
{
\Concrete\Core\Http\Request::setInstance($request);
$this->app->instance('Concrete\Core\Http\Request', $request);
return $frame->next($request);
}
}
Arguments
Concrete\Core\Http\Request {#1574
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#1728}
+request: Symfony\Component\HttpFoundation\InputBag {#1227}
+query: Symfony\Component\HttpFoundation\InputBag {#1575}
+server: Symfony\Component\HttpFoundation\ServerBag {#1731}
+files: Symfony\Component\HttpFoundation\FileBag {#1730}
+cookies: Symfony\Component\HttpFoundation\InputBag {#1729}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#1732}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: null
#pathInfo: "/testimonials/feed"
#requestUri: "/testimonials/feed"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#hasCustomRequestUser: null
#customRequestUser: null
#customRequestDateTime: null
#c: Concrete\Core\Page\Page {#3056}
basePath: ""
format: "html"
}
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Http/Middleware/MiddlewareDelegate.php
public function __construct(
MiddlewareInterface $middleware,
DelegateInterface $nextDelegate,
HttpFoundationFactory $foundationFactory
) {
$this->middleware = $middleware;
$this->nextDelegate = $nextDelegate;
$this->foundationFactory = $foundationFactory;
}
/**
* Dispatch the next available middleware and return the response.
*
* @param Request $request
* @return Response
*/
public function next(Request $request)
{
$response = $this->middleware->process($request, $this->nextDelegate);
// Negotiate PSR7 responses
if ($response instanceof ResponseInterface) {
return $this->foundationFactory->createResponse($response);
}
return $response;
}
}
Arguments
Concrete\Core\Http\Request {#1574
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#1728}
+request: Symfony\Component\HttpFoundation\InputBag {#1227}
+query: Symfony\Component\HttpFoundation\InputBag {#1575}
+server: Symfony\Component\HttpFoundation\ServerBag {#1731}
+files: Symfony\Component\HttpFoundation\FileBag {#1730}
+cookies: Symfony\Component\HttpFoundation\InputBag {#1729}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#1732}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: null
#pathInfo: "/testimonials/feed"
#requestUri: "/testimonials/feed"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#hasCustomRequestUser: null
#customRequestUser: null
#customRequestDateTime: null
#c: Concrete\Core\Page\Page {#3056}
basePath: ""
format: "html"
}
Concrete\Core\Http\Middleware\MiddlewareDelegate {#1749}
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Http/Middleware/MiddlewareStack.php
public function withoutMiddleware(MiddlewareInterface $middleware)
{
$stack = clone $this;
$stack->middleware = array_map(function($priorityGroup) use ($middleware) {
return array_map(function($stackMiddleware) use ($middleware) {
return $middleware === $stackMiddleware ? null : $stackMiddleware;
}, $priorityGroup);
}, $stack->middleware);
return $stack;
}
/**
* @inheritdoc
*/
public function process(Request $request)
{
$stack = $this->getStack();
return $stack->next($request);
}
/**
* Reduce middleware into a stack of functions that each call the next
* @return callable
*/
private function getStack()
{
$processed = [];
foreach ($this->middlewareGenerator() as $middleware) {
$processed[] = $middleware;
}
$middleware = array_reverse($processed);
$stack = array_reduce($middleware, $this->getZipper(), $this->dispatcher);
return $stack;
}
Arguments
Concrete\Core\Http\Request {#1574
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#1728}
+request: Symfony\Component\HttpFoundation\InputBag {#1227}
+query: Symfony\Component\HttpFoundation\InputBag {#1575}
+server: Symfony\Component\HttpFoundation\ServerBag {#1731}
+files: Symfony\Component\HttpFoundation\FileBag {#1730}
+cookies: Symfony\Component\HttpFoundation\InputBag {#1729}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#1732}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: null
#pathInfo: "/testimonials/feed"
#requestUri: "/testimonials/feed"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#hasCustomRequestUser: null
#customRequestUser: null
#customRequestDateTime: null
#c: Concrete\Core\Page\Page {#3056}
basePath: ""
format: "html"
}
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Http/DefaultServer.php
*/
public function removeMiddleware(MiddlewareInterface $middleware)
{
$this->stack = $this->stack->withoutMiddleware($middleware);
return $this;
}
/**
* Take a request and pass it through middleware, then return the response
* @param SymfonyRequest $request
* @return SymfonyResponse
*/
public function handleRequest(SymfonyRequest $request)
{
$stack = $this->stack;
if ($stack instanceof MiddlewareStack) {
$stack = $stack->withDispatcher($this->app->make(DispatcherDelegate::class, ['dispatcher' => $this->dispatcher]));
}
return $stack->process($request);
}
}
Arguments
Concrete\Core\Http\Request {#1574
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#1728}
+request: Symfony\Component\HttpFoundation\InputBag {#1227}
+query: Symfony\Component\HttpFoundation\InputBag {#1575}
+server: Symfony\Component\HttpFoundation\ServerBag {#1731}
+files: Symfony\Component\HttpFoundation\FileBag {#1730}
+cookies: Symfony\Component\HttpFoundation\InputBag {#1729}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#1732}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: null
#pathInfo: "/testimonials/feed"
#requestUri: "/testimonials/feed"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#hasCustomRequestUser: null
#customRequestUser: null
#customRequestDateTime: null
#c: Concrete\Core\Page\Page {#3056}
basePath: ""
format: "html"
}
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Foundation/Runtime/Run/DefaultRunner.php
// Register legacy config values
'registerLegacyConfigValues',
// Handle loading permission keys
'handlePermissionKeys',
// Handle eventing
'handleEventing',
]);
} else {
$this->initializeSystemTimezone();
$this->preloadClassAliases();
}
// Create the request to use
$request = $this->createRequest();
if (!$response) {
$response = $this->server->handleRequest($request);
}
// Prepare and return the response
return $response->prepare($request);
}
/**
* Define the base url if not defined
* This will define `BASE_URL` to whatever is resolved from the resolver.
*
* @deprecated In a future major version this will be part of HTTP middleware
*
* @return Response|void Returns a response if an error occurs
*/
protected function initializeLegacyURLDefinitions()
{
if (!defined('BASE_URL')) {
$resolver = $this->getUrlResolver();
try {
Arguments
Concrete\Core\Http\Request {#1574
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#1728}
+request: Symfony\Component\HttpFoundation\InputBag {#1227}
+query: Symfony\Component\HttpFoundation\InputBag {#1575}
+server: Symfony\Component\HttpFoundation\ServerBag {#1731}
+files: Symfony\Component\HttpFoundation\FileBag {#1730}
+cookies: Symfony\Component\HttpFoundation\InputBag {#1729}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#1732}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: null
#pathInfo: "/testimonials/feed"
#requestUri: "/testimonials/feed"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#hasCustomRequestUser: null
#customRequestUser: null
#customRequestDateTime: null
#c: Concrete\Core\Page\Page {#3056}
basePath: ""
format: "html"
}
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Foundation/Runtime/DefaultRuntime.php
$this->status = self::STATUS_ACTIVE;
}
}
/**
* Begin the runtime.
*/
public function run()
{
switch ($this->status) {
case self::STATUS_ENDED:
// We've already ended, lets just return
return;
case self::STATUS_INACTIVE:
throw new \RuntimeException('Runtime has not yet booted.');
}
$runner = $this->getRunner();
$response = $runner->run();
if ($response) {
$this->sendResponse($response);
}
return $response;
}
/**
* The method that handles properly sending a response.
*
* @param \Symfony\Component\HttpFoundation\Response $response
*/
protected function sendResponse(Response $response)
{
$response->send();
// Set the status to ended
$this->status = self::STATUS_ENDED;
}
/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/dispatcher.php
* Include all autoloaders.
* ----------------------------------------------------------------------------
*/
require __DIR__ . '/bootstrap/autoload.php';
/*
* ----------------------------------------------------------------------------
* Begin Concrete startup.
* ----------------------------------------------------------------------------
*/
$app = require __DIR__ . '/bootstrap/start.php';
/** @var \Concrete\Core\Application\Application $app */
/*
* ----------------------------------------------------------------------------
* Run the runtime.
* ----------------------------------------------------------------------------
*/
$runtime = $app->getRuntime();
if ($response = $runtime->run()) {
/*
* ------------------------------------------------------------------------
* Shut it down.
* ------------------------------------------------------------------------
*/
$app->shutdown();
} else {
return $app;
}
/datadrive/artplumb/public_html/concrete/bootstrap/configure.php
defined('DIR_CONFIG_SITE') or define('DIR_CONFIG_SITE', DIR_APPLICATION . '/config');
/*
* ----------------------------------------------------------------------------
* Now that we've had the opportunity to load our config file, we know if we
* have a DIRNAME_CORE_UPDATED constant, which lives in that file, and which
* points to another core. If we have this constant, we exit this file
* immeditely and proceed into the updated core.
* ----------------------------------------------------------------------------
*/
if (!defined('APP_UPDATED_PASSTHRU')) {
$update_file = DIR_CONFIG_SITE . '/update.php';
if (file_exists($update_file)) {
$updates = (array) include $update_file;
if (isset($updates['core'])) {
define('APP_UPDATED_PASSTHRU', true);
define('DIRNAME_APP_UPDATED', $updates['core']);
if (is_dir(DIR_BASE . '/' . DIRNAME_UPDATES . '/' . DIRNAME_APP_UPDATED)) {
require DIR_BASE . '/' . DIRNAME_UPDATES . '/' . DIRNAME_APP_UPDATED . '/' . DIRNAME_CORE . '/' . 'dispatcher.php';
} elseif (file_exists(DIRNAME_UPDATES . '/' . DIRNAME_APP_UPDATED . '/' . DIRNAME_CORE . '/' . 'dispatcher.php')) {
require DIRNAME_UPDATES . '/' . DIRNAME_APP_UPDATED . '/' . DIRNAME_CORE . '/' . 'dispatcher.php';
} else {
die(sprintf('Invalid "%s" defined. Please remove it from %s.', 'update.core', $update_file));
}
exit;
}
}
unset($update_file);
define('APP_UPDATED_PASSTHRU', false);
}
if (!defined('DIRNAME_APP_UPDATED') && isset($updates['core'])) {
define('DIRNAME_APP_UPDATED', $updates['core']);
}
/*
* ----------------------------------------------------------------------------
* ## If we're still here, we're proceeding through this concrete directory,
* and it's time to load the rest of our hard-coded configuration options –
Arguments
"/datadrive/artplumb/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/dispatcher.php"
/datadrive/artplumb/public_html/concrete/dispatcher.php
<?php
if (!defined('PHP_VERSION_ID') || PHP_VERSION_ID < 50509) {
die("concrete5 requires PHP 5.5.9+ to run.\nYou are running PHP " . PHP_VERSION . "\n");
}
/*
* ----------------------------------------------------------------------------
* Set required constants, including directory names, attempt to include site configuration file with database
* information, attempt to determine if we ought to skip to an updated core, etc...
* ----------------------------------------------------------------------------
*/
require __DIR__ . '/bootstrap/configure.php';
/*
* ----------------------------------------------------------------------------
* Make sure you cannot call dispatcher.php directly.
* ----------------------------------------------------------------------------
*/
if (basename($_SERVER['PHP_SELF']) === DISPATCHER_FILENAME_CORE) {
die('Access Denied.');
}
/*
* ----------------------------------------------------------------------------
* Include all autoloaders.
* ----------------------------------------------------------------------------
*/
require __DIR__ . '/bootstrap/autoload.php';
/*
* ----------------------------------------------------------------------------
* Begin concrete5 startup.
* ----------------------------------------------------------------------------
*/
$app = require __DIR__ . '/bootstrap/start.php';
/** @var \Concrete\Core\Application\Application $app */
/*
* ----------------------------------------------------------------------------
Arguments
"/datadrive/artplumb/public_html/concrete/bootstrap/configure.php"
/datadrive/artplumb/public_html/index.php
<?php
require 'concrete/dispatcher.php';
Arguments
"/datadrive/artplumb/public_html/concrete/dispatcher.php"