/srv/disk8/2197592/www/quoipro.com/user/plugins/problems/classes/Problems/Base/ProblemChecker.php
{
return $this->status_file;
}
/**
* @return bool
*/
public function statusFileExists(): bool
{
return file_exists($this->status_file);
}
/**
* @return void
*/
public function storeStatusFile(): void
{
$problems = $this->getProblemsSerializable();
$json = json_encode($problems);
file_put_contents($this->status_file, $json);
}
/**
* @param string|null $problems_dir
* @return bool
*/
public function check($problems_dir = null): bool
{
$problems_dir = $problems_dir ?: dirname(__DIR__);
$problems = [];
$problems_found = false;
$iterator = new \DirectoryIterator($problems_dir);
foreach ($iterator as $file) {
if (!$file->isFile() || $file->getExtension() !== 'php') {
continue;
}
$classname = 'Grav\\Plugin\\Problems\\' . $file->getBasename('.php');
if (class_exists($classname)) {
/** @var Problem $problem */
Arguments
"file_put_contents(/srv/disk8/2197592/www/quoipro.com/cache/problem-check-g-cd6c96a6.json): Failed to open stream: Disk quota exceeded"
/srv/disk8/2197592/www/quoipro.com/user/plugins/problems/classes/Problems/Base/ProblemChecker.php
{
return $this->status_file;
}
/**
* @return bool
*/
public function statusFileExists(): bool
{
return file_exists($this->status_file);
}
/**
* @return void
*/
public function storeStatusFile(): void
{
$problems = $this->getProblemsSerializable();
$json = json_encode($problems);
file_put_contents($this->status_file, $json);
}
/**
* @param string|null $problems_dir
* @return bool
*/
public function check($problems_dir = null): bool
{
$problems_dir = $problems_dir ?: dirname(__DIR__);
$problems = [];
$problems_found = false;
$iterator = new \DirectoryIterator($problems_dir);
foreach ($iterator as $file) {
if (!$file->isFile() || $file->getExtension() !== 'php') {
continue;
}
$classname = 'Grav\\Plugin\\Problems\\' . $file->getBasename('.php');
if (class_exists($classname)) {
/** @var Problem $problem */
Arguments
"/srv/disk8/2197592/www/quoipro.com/cache/problem-check-g-cd6c96a6.json"
"[{"id":"PHP Minimum Version","order":102,"level":"critical","status":true,"msg":"Your PHP <strong>8.4.14<\/strong> is greater than the minimum of <strong>7.3.6<\/strong> required","details":[],"help":"https:\/\/getgrav.org\/blog\/raising-php-requirements-2018","class":"Grav\\Plugin\\Problems\\PHPVersion"},{"id":"PHP Modules","order":101,"level":"critical","status":true,"msg":"All modules look good!","details":{"errors":[],"success":{"curl":"PHP Curl (Data Transfer Library) is successfully installed","ctype":"PHP Ctype is successfully installed","dom":"PHP DOM is successfully installed","gd":"PHP GD (Image Manipulation Library) is successfully installed","mbstring":"PHP Mbstring (Multibyte String Library) is successfully installed","openssl":"PHP OpenSSL (Secure Sockets Library) is successfully installed","json":"PHP JSON Library is successfully installed","xml":"PHP XML Library is successfully installed","zip":"PHP Zip extension is successfully installed"}},"help":"https:\/\/learn.getgrav.org\/basics\/requirements#php-requirements","class":"Grav\\Plugin\\Problems\\PHPModules"},{"id":"Essential Folders","order":100,"level":"critical","status":true,"msg":"All folders look good!","details":{"errors":[],"success":{"\/srv\/disk8\/2197592\/www\/quoipro.com":"exists","\/srv\/disk8\/2197592\/www\/quoipro.com\/vendor":"exists","\/srv\/disk8\/2197592\/www\/quoipro.com\/system":"exists","\/srv\/disk8\/2197592\/www\/quoipro.com\/cache":"exists and is writable","\/srv\/disk8\/2197592\/www\/quoipro.com\/logs":"exists and is writable","\/srv\/disk8\/2197592\/www\/quoipro.com\/tmp":"exists and is writable","\/srv\/disk8\/2197592\/www\/quoipro.com\/backup":"exists and is writable","\/srv\/disk8\/2197592\/www\/quoipro.com\/images":"exists and is writable","\/srv\/disk8\/2197592\/www\/quoipro.com\/assets":"exists and is writable","\/srv\/disk8\/2197592\/www\/quoipro.com\/user\/accounts":"exists and is writable","\/srv\/disk8\/2197592\/www\/quoipro.com\/user\/data":"exists and is writable","\/srv\/disk8\/2197592\/www\/quoipro.com\/user\/pages":"exists","\/srv\/disk8\/2197592\/www\/quoipro.com\/user\/config":"exists","\/srv\/disk8\/2197592\/www\/quoipro.com\/user\/plugins\/error":"exists","\/srv\/disk8\/2197592\/www\/quoipro.com\/user\/plugins":"exists","\/srv\/disk8\/2197592\/www\/quoipro.com\/user\/themes":"exists"}},"help":"https:\/\/learn.getgrav.org\/basics\/folder-structure","class":"Grav\\Plugin\\Problems\\EssentialFolders"},{"id":"Apache Modules","order":1,"level":"critical","status":true,"msg":"Apache not installed, skipping...","details":[],"help":"https:\/\/learn.getgrav.org\/basics\/requirements#apache-requirements","class":"Grav\\Plugin\\Problems\\Apache"},{"id":"Permissions Setup","order":-1,"level":"warning","status":true,"msg":"Your default file umask is <strong>22<\/strong> which looks good!","details":[],"help":"https:\/\/learn.getgrav.org\/troubleshooting\/permissions","class":"Grav\\Plugin\\Problems\\Permissions"}]"
/srv/disk8/2197592/www/quoipro.com/user/plugins/problems/problems.php
if (\defined('GRAV_CLI') || $this->isAdmin()) {
return;
}
$this->enable([
'onFatalException' => ['onFatalException', 0],
]);
$this->checker = new ProblemChecker();
if (!$this->checker->statusFileExists()) {
// If no issues remain, save a state file in the cache
if (!$this->problemsFound()) {
// delete any existing validated files
/** @var \SplFileInfo $fileInfo */
foreach (new \GlobIterator(CACHE_DIR . ProblemChecker::PROBLEMS_PREFIX . '*') as $fileInfo) {
@unlink($fileInfo->getPathname());
}
// create a file in the cache dir so it only runs on cache changes
$this->checker->storeStatusFile();
} else {
$this->renderProblems();
}
}
}
/**
* @return never-return
*/
private function renderProblems(): void
{
/** @var Uri $uri */
$uri = $this->grav['uri'];
/** @var Environment $twig */
$twig = $this->getTwig();
$data = [
'problems' => $this->problems,
'base_url' => $baseUrlRelative = $uri->rootUrl(false),
/srv/disk8/2197592/www/quoipro.com/vendor/symfony/event-dispatcher/EventDispatcher.php
foreach ($listeners as $listener) {
if ($stoppable && $event->isPropagationStopped()) {
break;
}
// @deprecated: the ternary operator is part of a BC layer and should be removed in 5.0
$listener($listener instanceof WrappedListener ? new LegacyEventProxy($event) : $event, $eventName, $this);
}
}
/**
* @deprecated since Symfony 4.3, use callListeners() instead
*/
protected function doDispatch($listeners, $eventName, Event $event)
{
foreach ($listeners as $listener) {
if ($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
RocketTheme\Toolbox\Event\Event {#175}
"onPluginsInitialized"
Symfony\Component\EventDispatcher\EventDispatcher {#144
-listeners: array:49 [
"onPluginsInitialized" => array:8 [
100002 => array:1 [
0 => array:2 [
0 => Grav\Plugin\ProblemsPlugin {#120}
1 => "autoload"
]
]
100001 => array:6 [
0 => array:2 [
0 => Grav\Plugin\ArchivesPlugin {#98}
1 => "autoload"
]
1 => array:2 [
0 => Grav\Plugin\GoogleAnalyticsPlugin {#112}
1 => "autoload"
]
2 => array:2 [
0 => Grav\Plugin\MarkdownNoticesPlugin {#117}
1 => "autoload"
]
3 => array:2 [
0 => Grav\Plugin\PaginationPlugin {#119}
1 => "autoload"
]
4 => array:2 [
0 => Grav\Plugin\ProblemsPlugin {#120}
1 => "onPluginsInitialized"
]
5 => array:2 [
0 => Grav\Plugin\ShortcodeCorePlugin {#125}
1 => "autoload"
]
]
100000 => array:5 [
0 => array:2 [
0 => Grav\Plugin\AdminPlugin {#95}
1 => "setup"
]
1 => array:2 [
0 => Grav\Plugin\FeedPlugin {#109}
1 => "autoload"
]
2 => array:2 [
0 => Grav\Plugin\ReadingTimePlugin {#122}
1 => "autoload"
]
3 => array:2 [
0 => Grav\Plugin\SitemapPlugin {#129}
1 => "autoload"
]
4 => array:2 [
0 => Grav\Plugin\WidgetPlugin {#132}
1 => "setup"
]
]
10000 => array:1 [
0 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "initializeSession"
]
]
1001 => array:1 [
0 => array:2 [
0 => Grav\Plugin\AdminPlugin {#95}
1 => "onPluginsInitialized"
]
]
1000 => array:2 [
0 => array:2 [
0 => Grav\Plugin\AdvancedPageCachePlugin {#97}
1 => "onPluginsInitialized"
]
1 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "initializeLogin"
]
]
10 => array:1 [
0 => array:2 [
0 => Grav\Plugin\ShortcodeCorePlugin {#125}
1 => "onPluginsInitialized"
]
]
0 => array:26 [
0 => array:2 [
0 => Grav\Plugin\AdminPowerToolsPlugin {#94}
1 => "onPluginsInitialized"
]
1 => array:2 [
0 => Grav\Plugin\ArchivesPlugin {#98}
1 => "onPluginsInitialized"
]
2 => array:2 [
0 => Grav\Plugin\BacklinksPlugin {#99}
1 => "onPluginsInitialized"
]
3 => array:2 [
0 => Grav\Plugin\CommentsPlugin {#100}
1 => "onPluginsInitialized"
]
4 => array:2 [
0 => Grav\Plugin\CoreServiceManagerPlugin {#101}
1 => "onPluginsInitialized"
]
5 => array:2 [
0 => Grav\Plugin\EditorPlugin {#104}
1 => "onPluginsInitialized"
]
6 => array:2 [
0 => Grav\Plugin\EmailPlugin {#106}
1 => "onPluginsInitialized"
]
7 => array:2 [
0 => Grav\Plugin\ExternalLinksPlugin {#108}
1 => "onPluginsInitialized"
]
8 => array:2 [
0 => Grav\Plugin\FeedPlugin {#109}
1 => "onPluginsInitialized"
]
9 => array:2 [
0 => Grav\Plugin\FlexObjectsPlugin {#110}
1 => "onPluginsInitialized"
]
10 => array:2 [
0 => Grav\Plugin\FormPlugin {#111}
1 => "onPluginsInitialized"
]
11 => array:2 [
0 => Grav\Plugin\GoogleAnalyticsPlugin {#112}
1 => "onPluginsInitialized"
]
12 => array:2 [
0 => Grav\Plugin\JSCommentsPlugin {#114}
1 => "onPluginsInitialized"
]
13 => array:2 [
0 => Grav\Plugin\MaintenancePlugin {#116}
1 => "onPluginsInitialized"
]
14 => array:2 [
0 => Grav\Plugin\MinifyHtmlPlugin {#118}
1 => "onPluginsInitialized"
]
15 => array:2 [
0 => Grav\Plugin\PaginationPlugin {#119}
1 => "onPluginsInitialized"
]
16 => array:2 [
0 => Grav\Plugin\ReadingTimePlugin {#122}
1 => "onPluginsInitialized"
]
17 => array:2 [
0 => Grav\Plugin\RelatedPagesPlugin {#123}
1 => "onPluginsInitialized"
]
18 => array:2 [
0 => Grav\Plugin\seoPlugin {#124}
1 => "onPluginsInitialized"
]
19 => array:2 [
0 => Grav\Plugin\SimpleResponsiveTablesPlugin {#127}
1 => "onPluginsInitialized"
]
20 => array:2 [
0 => Grav\Plugin\SimplesearchPlugin {#128}
1 => "onPluginsInitialized"
]
21 => array:2 [
0 => Grav\Plugin\SitemapPlugin {#129}
1 => "onPluginsInitialized"
]
22 => array:2 [
0 => Grav\Plugin\SocialButtonsPlugin {#130}
1 => "onPluginsInitialized"
]
23 => array:2 [
0 => Grav\Plugin\SubscriberPlugin {#131}
1 => "onPluginsInitialized"
]
24 => array:2 [
0 => Grav\Plugin\WidgetPlugin {#132}
1 => "onPluginsInitialized"
]
25 => array:2 [
0 => Grav\Plugin\YoutubePlugin {#133}
1 => "onPluginsInitialized"
]
]
]
"onRequestHandlerInit" => array:1 [
100000 => array:1 [
0 => array:2 [
0 => Grav\Plugin\AdminPlugin {#95}
1 => "onRequestHandlerInit"
]
]
]
"onFormRegisterTypes" => array:1 [
0 => array:2 [
0 => array:2 [
0 => Grav\Plugin\AdminPlugin {#95}
1 => "onFormRegisterTypes"
]
1 => array:2 [
0 => Grav\Plugin\FlexObjectsPlugin {#110}
1 => "onFormRegisterTypes"
]
]
]
"onPageInitialized" => array:2 [
0 => array:4 [
0 => array:2 [
0 => Grav\Plugin\AdminPlugin {#95}
1 => "onPageInitialized"
]
1 => array:2 [
0 => Grav\Plugin\HighlightPlugin {#113}
1 => "onPageInitialized"
]
2 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "authorizePage"
]
3 => array:2 [
0 => Grav\Plugin\seoPlugin {#124}
1 => "onPageInitialized"
]
]
10 => array:1 [
0 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "authorizeLoginPage"
]
]
]
"onShutdown" => array:1 [
1000 => array:1 [
0 => array:2 [
0 => Grav\Plugin\AdminPlugin {#95}
1 => "onShutdown"
]
]
]
"Grav\Events\PermissionsRegisterEvent" => array:2 [
1000 => array:1 [
0 => array:2 [
0 => Grav\Plugin\AdminPlugin {#95}
1 => "onRegisterPermissions"
]
]
100 => array:1 [
0 => array:2 [
0 => Grav\Plugin\FlexObjectsPlugin {#110}
1 => "onRegisterPermissions"
]
]
]
"onBlueprintCreated" => array:1 [
0 => array:3 [
0 => array:2 [
0 => Grav\Plugin\AdminPowerToolsPlugin {#94}
1 => "onBlueprintCreated"
]
1 => array:2 [
0 => Grav\Plugin\FeedPlugin {#109}
1 => "onBlueprintCreated"
]
2 => array:2 [
0 => Grav\Plugin\SitemapPlugin {#129}
1 => "onBlueprintCreated"
]
]
]
"onTwigSiteVariables" => array:2 [
0 => array:2 [
0 => array:2 [
0 => Grav\Plugin\EditorButtonsPlugin {#105}
1 => "onTwigSiteVariables"
]
1 => array:2 [
0 => Grav\Plugin\MarkdownNoticesPlugin {#117}
1 => "onTwigSiteVariables"
]
]
-100000 => array:1 [
0 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "onTwigSiteVariables"
]
]
]
"onFormProcessed" => array:1 [
0 => array:2 [
0 => array:2 [
0 => Grav\Plugin\EmailPlugin {#106}
1 => "onFormProcessed"
]
1 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "onFormProcessed"
]
]
]
"onTwigTemplatePaths" => array:2 [
0 => array:6 [
0 => array:2 [
0 => Grav\Plugin\EmailPlugin {#106}
1 => "onTwigTemplatePaths"
]
1 => array:2 [
0 => Grav\Plugin\FormPlugin {#111}
1 => "onTwigTemplatePaths"
]
2 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "onTwigTemplatePaths"
]
3 => array:2 [
0 => Grav\Plugin\ShortcodeOwlCarouselPlugin {#126}
1 => "onTwigTemplatePaths"
]
4 => array:2 [
0 => Grav\Plugin\SimplesearchPlugin {#128}
1 => "onTwigTemplatePaths"
]
5 => array:2 [
0 => Grav\Plugin\WidgetPlugin {#132}
1 => "onTwigTemplatePaths"
]
]
-10 => array:1 [
0 => array:2 [
0 => Grav\Plugin\ErrorPlugin {#107}
1 => "onTwigTemplatePaths"
]
]
]
"onSchedulerInitialized" => array:1 [
0 => array:2 [
0 => array:2 [
0 => Grav\Plugin\EmailPlugin {#106}
1 => "onSchedulerInitialized"
]
1 => array:2 [
0 => Grav\Common\Cache {#220}
1 => "onSchedulerInitialized"
]
]
]
"onAdminSave" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Grav\Plugin\EmailPlugin {#106}
1 => "onAdminSave"
]
]
]
"onCliInitialize" => array:2 [
100000 => array:2 [
0 => array:2 [
0 => Grav\Plugin\ErrorPlugin {#107}
1 => "autoload"
]
1 => array:2 [
0 => Grav\Plugin\FlexObjectsPlugin {#110}
1 => "autoload"
]
]
10 => array:1 [
0 => array:2 [
0 => Grav\Plugin\FlexObjectsPlugin {#110}
1 => "initializeFlex"
]
]
]
"onPageNotFound" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Grav\Plugin\ErrorPlugin {#107}
1 => "onPageNotFound"
]
]
]
"onGetPageTemplates" => array:1 [
0 => array:3 [
0 => array:2 [
0 => Grav\Plugin\ErrorPlugin {#107}
1 => "onGetPageTemplates"
]
1 => array:2 [
0 => Grav\Plugin\SimplesearchPlugin {#128}
1 => "onGetPageTemplates"
]
2 => array:2 [
0 => Grav\Plugin\WidgetPlugin {#132}
1 => "onGetPageTemplates"
]
]
]
"onDisplayErrorPage.404" => array:1 [
-1 => array:1 [
0 => array:2 [
0 => Grav\Plugin\ErrorPlugin {#107}
1 => "onDisplayErrorPage404"
]
]
]
"onPageHeaders" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Grav\Plugin\FeedPlugin {#109}
1 => "onPageHeaders"
]
]
]
"Grav\Events\PluginsLoadedEvent" => array:1 [
10 => array:2 [
0 => array:2 [
0 => Grav\Plugin\FlexObjectsPlugin {#110}
1 => "initializeFlex"
]
1 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "onPluginsLoaded"
]
]
]
"Grav\Events\FlexRegisterEvent" => array:1 [
100 => array:1 [
0 => array:2 [
0 => Grav\Plugin\FlexObjectsPlugin {#110}
1 => "onRegisterFlex"
]
]
]
"onTwigExtensions" => array:2 [
0 => array:2 [
0 => array:2 [
0 => Grav\Plugin\FormPlugin {#111}
1 => "onTwigExtensions"
]
1 => array:2 [
0 => Grav\Plugin\SubscriberPlugin {#131}
1 => "onTwigExtensions"
]
]
1000 => array:1 [
0 => array:2 [
0 => Grav\Plugin\WidgetPlugin {#132}
1 => "onTwigExtensions"
]
]
]
"Grav\Events\SessionStartEvent" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "onSessionStart"
]
]
]
"Grav\Events\BeforeSessionStartEvent" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "onBeforeSessionStart"
]
]
]
"Grav\Plugin\Login\Events\PageAuthorizeEvent" => array:1 [
-10000 => array:1 [
0 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "onPageAuthorizeEvent"
]
]
]
"onTask.login.login" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "loginController"
]
]
]
"onTask.login.twofa" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "loginController"
]
]
]
"onTask.login.twofa_cancel" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "loginController"
]
]
]
"onTask.login.forgot" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "loginController"
]
]
]
"onTask.login.logout" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "loginController"
]
]
]
"onTask.login.reset" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "loginController"
]
]
]
"onTask.login.regenerate2FASecret" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "loginController"
]
]
]
"onPageTask.login.invite" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "loginController"
]
]
]
"onPagesInitialized" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "storeReferrerPage"
]
]
]
"onDisplayErrorPage.401" => array:1 [
-1 => array:1 [
0 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "onDisplayErrorPage401"
]
]
]
"onDisplayErrorPage.403" => array:1 [
-1 => array:1 [
0 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "onDisplayErrorPage403"
]
]
]
"onPageFallBackUrl" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "authorizeFallBackUrl"
]
]
]
"onUserLoginAuthenticate" => array:5 [
10003 => array:1 [
0 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "userLoginAuthenticateRateLimit"
]
]
10002 => array:1 [
0 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "userLoginAuthenticateByRegistration"
]
]
10001 => array:1 [
0 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "userLoginAuthenticateByRememberMe"
]
]
10000 => array:1 [
0 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "userLoginAuthenticateByEmail"
]
]
0 => array:1 [
0 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "userLoginAuthenticate"
]
]
]
"onUserLoginAuthorize" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "userLoginAuthorize"
]
]
]
"onUserLoginFailure" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "userLoginGuest"
]
]
]
"onUserLoginGuest" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "userLoginGuest"
]
]
]
"onUserLogin" => array:2 [
1000 => array:1 [
0 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "userLoginResetRateLimit"
]
]
10 => array:1 [
0 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "userLogin"
]
]
]
"onUserLogout" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "userLogout"
]
]
]
"onMarkdownInitialized" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Grav\Plugin\MarkdownNoticesPlugin {#117}
1 => "onMarkdownInitialized"
]
]
]
"onAdminGenerateReports" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Grav\Plugin\ProblemsPlugin {#120}
1 => "onAdminGenerateReports"
]
]
]
"onAdminCompilePresetSCSS" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Grav\Plugin\ProblemsPlugin {#120}
1 => "onAdminCompilePresetSCSS"
]
]
]
"onAdminMenu" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Grav\Plugin\QuickTrayLinksPlugin {#121}
1 => "onAdminMenu"
]
]
]
"registerNextGenEditorPlugin" => array:1 [
0 => array:3 [
0 => array:2 [
0 => Grav\Plugin\ShortcodeCorePlugin {#125}
1 => "registerNextGenEditorPlugin"
]
1 => array:2 [
0 => Grav\Plugin\ShortcodeCorePlugin {#125}
1 => "registerNextGenEditorPluginShortcodes"
]
2 => array:2 [
0 => Grav\Plugin\YoutubePlugin {#133}
1 => "registerNextGenEditorPluginShortcodes"
]
]
]
"onShortcodeHandlers" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Grav\Plugin\ShortcodeOwlCarouselPlugin {#126}
1 => "onShortcodeHandlers"
]
]
]
"onGetPageBlueprints" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Grav\Plugin\WidgetPlugin {#132}
1 => "onGetPageBlueprints"
]
]
]
"onFatalException" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Grav\Plugin\ProblemsPlugin {#120}
1 => "onFatalException"
]
]
]
]
-sorted: []
-optimized: array:3 [
"Grav\Events\PluginsLoadedEvent" => array:2 [
0 => Grav\Plugin\FlexObjectsPlugin::initializeFlex(): void {#158 …4}
1 => Grav\Plugin\LoginPlugin::onPluginsLoaded(): void {#165 …4}
]
"onPluginsInitialized" => array:43 [
0 => Grav\Plugin\ProblemsPlugin::autoload(): ClassLoader {#176 …4}
1 => Grav\Plugin\ArchivesPlugin::autoload() {#177 …3}
2 => Grav\Plugin\GoogleAnalyticsPlugin::autoload(): ClassLoader {#178 …4}
3 => Grav\Plugin\MarkdownNoticesPlugin::autoload() {#179 …3}
4 => Grav\Plugin\PaginationPlugin::autoload() {#180 …3}
5 => Grav\Plugin\ProblemsPlugin::onPluginsInitialized(): void {#181 …4}
6 => Grav\Plugin\ShortcodeCorePlugin::autoload() {#182 …3}
7 => Grav\Plugin\AdminPlugin::setup() {#183 …3}
8 => Grav\Plugin\FeedPlugin::autoload() {#184 …3}
9 => Grav\Plugin\ReadingTimePlugin::autoload() {#185 …3}
10 => Grav\Plugin\SitemapPlugin::autoload(): ClassLoader {#186 …4}
11 => Grav\Plugin\WidgetPlugin::setup() {#187 …3}
12 => Grav\Plugin\LoginPlugin::initializeSession(): void {#188 …4}
13 => Grav\Plugin\AdminPlugin::onPluginsInitialized() {#189 …3}
14 => Grav\Plugin\AdvancedPageCachePlugin::onPluginsInitialized(): void {#190 …4}
15 => Grav\Plugin\LoginPlugin::initializeLogin(): void {#191 …4}
16 => Grav\Plugin\ShortcodeCorePlugin::onPluginsInitialized() {#192 …3}
17 => Grav\Plugin\AdminPowerToolsPlugin::onPluginsInitialized() {#193 …3}
18 => Grav\Plugin\ArchivesPlugin::onPluginsInitialized() {#194 …3}
19 => Grav\Plugin\BacklinksPlugin::onPluginsInitialized() {#195 …3}
20 => Grav\Plugin\CommentsPlugin::onPluginsInitialized() {#196 …3}
21 => Grav\Plugin\CoreServiceManagerPlugin::onPluginsInitialized() {#197 …3}
22 => Grav\Plugin\EditorPlugin::onPluginsInitialized() {#198 …3}
23 => Grav\Plugin\EmailPlugin::onPluginsInitialized() {#199 …3}
24 => Grav\Plugin\ExternalLinksPlugin::onPluginsInitialized() {#200 …3}
25 => Grav\Plugin\FeedPlugin::onPluginsInitialized() {#201 …3}
26 => Grav\Plugin\FlexObjectsPlugin::onPluginsInitialized(): void {#202 …4}
27 => Grav\Plugin\FormPlugin::onPluginsInitialized(): void {#203 …4}
28 => Grav\Plugin\GoogleAnalyticsPlugin::onPluginsInitialized(): void {#204 …4}
29 => Grav\Plugin\JSCommentsPlugin::onPluginsInitialized() {#205 …3}
30 => Grav\Plugin\MaintenancePlugin::onPluginsInitialized() {#206 …3}
31 => Grav\Plugin\MinifyHtmlPlugin::onPluginsInitialized() {#207 …3}
32 => Grav\Plugin\PaginationPlugin::onPluginsInitialized() {#208 …3}
33 => Grav\Plugin\ReadingTimePlugin::onPluginsInitialized() {#209 …3}
34 => Grav\Plugin\RelatedPagesPlugin::onPluginsInitialized() {#210 …3}
35 => Grav\Plugin\seoPlugin::onPluginsInitialized() {#211 …3}
36 => Grav\Plugin\SimpleResponsiveTablesPlugin::onPluginsInitialized() {#212 …3}
37 => Grav\Plugin\SimplesearchPlugin::onPluginsInitialized() {#213 …3}
38 => Grav\Plugin\SitemapPlugin::onPluginsInitialized() {#214 …3}
39 => Grav\Plugin\SocialButtonsPlugin::onPluginsInitialized() {#215 …3}
40 => Grav\Plugin\SubscriberPlugin::onPluginsInitialized() {#216 …3}
41 => Grav\Plugin\WidgetPlugin::onPluginsInitialized() {#217 …3}
42 => Grav\Plugin\YoutubePlugin::onPluginsInitialized() {#218 …3}
]
"onFatalException" => array:1 [
0 => Grav\Plugin\ProblemsPlugin::onFatalException(): void {#222 …4}
]
]
}
/srv/disk8/2197592/www/quoipro.com/vendor/symfony/event-dispatcher/EventDispatcher.php
} else {
$this->removeListener($eventName, [$subscriber, \is_string($params) ? $params : $params[0]]);
}
}
}
/**
* 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, $event)
{
if ($event instanceof Event) {
$this->doDispatch($listeners, $eventName, $event);
return;
}
$stoppable = $event instanceof ContractsEvent || $event instanceof StoppableEventInterface;
foreach ($listeners as $listener) {
if ($stoppable && $event->isPropagationStopped()) {
break;
}
// @deprecated: the ternary operator is part of a BC layer and should be removed in 5.0
$listener($listener instanceof WrappedListener ? new LegacyEventProxy($event) : $event, $eventName, $this);
}
}
/**
* @deprecated since Symfony 4.3, use callListeners() instead
*/
protected function doDispatch($listeners, $eventName, Event $event)
{
Arguments
array:43 [
0 => Grav\Plugin\ProblemsPlugin::autoload(): ClassLoader {#176 …4}
1 => Grav\Plugin\ArchivesPlugin::autoload() {#177 …3}
2 => Grav\Plugin\GoogleAnalyticsPlugin::autoload(): ClassLoader {#178 …4}
3 => Grav\Plugin\MarkdownNoticesPlugin::autoload() {#179 …3}
4 => Grav\Plugin\PaginationPlugin::autoload() {#180 …3}
5 => Grav\Plugin\ProblemsPlugin::onPluginsInitialized(): void {#181 …4}
6 => Grav\Plugin\ShortcodeCorePlugin::autoload() {#182 …3}
7 => Grav\Plugin\AdminPlugin::setup() {#183 …3}
8 => Grav\Plugin\FeedPlugin::autoload() {#184 …3}
9 => Grav\Plugin\ReadingTimePlugin::autoload() {#185 …3}
10 => Grav\Plugin\SitemapPlugin::autoload(): ClassLoader {#186 …4}
11 => Grav\Plugin\WidgetPlugin::setup() {#187 …3}
12 => Grav\Plugin\LoginPlugin::initializeSession(): void {#188 …4}
13 => Grav\Plugin\AdminPlugin::onPluginsInitialized() {#189 …3}
14 => Grav\Plugin\AdvancedPageCachePlugin::onPluginsInitialized(): void {#190 …4}
15 => Grav\Plugin\LoginPlugin::initializeLogin(): void {#191 …4}
16 => Grav\Plugin\ShortcodeCorePlugin::onPluginsInitialized() {#192 …3}
17 => Grav\Plugin\AdminPowerToolsPlugin::onPluginsInitialized() {#193 …3}
18 => Grav\Plugin\ArchivesPlugin::onPluginsInitialized() {#194 …3}
19 => Grav\Plugin\BacklinksPlugin::onPluginsInitialized() {#195 …3}
20 => Grav\Plugin\CommentsPlugin::onPluginsInitialized() {#196 …3}
21 => Grav\Plugin\CoreServiceManagerPlugin::onPluginsInitialized() {#197 …3}
22 => Grav\Plugin\EditorPlugin::onPluginsInitialized() {#198 …3}
23 => Grav\Plugin\EmailPlugin::onPluginsInitialized() {#199 …3}
24 => Grav\Plugin\ExternalLinksPlugin::onPluginsInitialized() {#200 …3}
25 => Grav\Plugin\FeedPlugin::onPluginsInitialized() {#201 …3}
26 => Grav\Plugin\FlexObjectsPlugin::onPluginsInitialized(): void {#202 …4}
27 => Grav\Plugin\FormPlugin::onPluginsInitialized(): void {#203 …4}
28 => Grav\Plugin\GoogleAnalyticsPlugin::onPluginsInitialized(): void {#204 …4}
29 => Grav\Plugin\JSCommentsPlugin::onPluginsInitialized() {#205 …3}
30 => Grav\Plugin\MaintenancePlugin::onPluginsInitialized() {#206 …3}
31 => Grav\Plugin\MinifyHtmlPlugin::onPluginsInitialized() {#207 …3}
32 => Grav\Plugin\PaginationPlugin::onPluginsInitialized() {#208 …3}
33 => Grav\Plugin\ReadingTimePlugin::onPluginsInitialized() {#209 …3}
34 => Grav\Plugin\RelatedPagesPlugin::onPluginsInitialized() {#210 …3}
35 => Grav\Plugin\seoPlugin::onPluginsInitialized() {#211 …3}
36 => Grav\Plugin\SimpleResponsiveTablesPlugin::onPluginsInitialized() {#212 …3}
37 => Grav\Plugin\SimplesearchPlugin::onPluginsInitialized() {#213 …3}
38 => Grav\Plugin\SitemapPlugin::onPluginsInitialized() {#214 …3}
39 => Grav\Plugin\SocialButtonsPlugin::onPluginsInitialized() {#215 …3}
40 => Grav\Plugin\SubscriberPlugin::onPluginsInitialized() {#216 …3}
41 => Grav\Plugin\WidgetPlugin::onPluginsInitialized() {#217 …3}
42 => Grav\Plugin\YoutubePlugin::onPluginsInitialized() {#218 …3}
]
"onPluginsInitialized"
RocketTheme\Toolbox\Event\Event {#175}
/srv/disk8/2197592/www/quoipro.com/vendor/symfony/event-dispatcher/EventDispatcher.php
if (\is_object($event)) {
$eventName = $eventName ?? \get_class($event);
} elseif (\is_string($event) && (null === $eventName || $eventName instanceof ContractsEvent || $eventName instanceof Event)) {
@trigger_error(sprintf('Calling the "%s::dispatch()" method with the event name as the first argument is deprecated since Symfony 4.3, pass it as the second argument and provide the event object as the first argument instead.', EventDispatcherInterface::class), \E_USER_DEPRECATED);
$swap = $event;
$event = $eventName ?? new Event();
$eventName = $swap;
} else {
throw new \TypeError(sprintf('Argument 1 passed to "%s::dispatch()" must be an object, "%s" given.', EventDispatcherInterface::class, \is_object($event) ? \get_class($event) : \gettype($event)));
}
if (null !== $this->optimized && null !== $eventName) {
$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($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:43 [
0 => Grav\Plugin\ProblemsPlugin::autoload(): ClassLoader {#176 …4}
1 => Grav\Plugin\ArchivesPlugin::autoload() {#177 …3}
2 => Grav\Plugin\GoogleAnalyticsPlugin::autoload(): ClassLoader {#178 …4}
3 => Grav\Plugin\MarkdownNoticesPlugin::autoload() {#179 …3}
4 => Grav\Plugin\PaginationPlugin::autoload() {#180 …3}
5 => Grav\Plugin\ProblemsPlugin::onPluginsInitialized(): void {#181 …4}
6 => Grav\Plugin\ShortcodeCorePlugin::autoload() {#182 …3}
7 => Grav\Plugin\AdminPlugin::setup() {#183 …3}
8 => Grav\Plugin\FeedPlugin::autoload() {#184 …3}
9 => Grav\Plugin\ReadingTimePlugin::autoload() {#185 …3}
10 => Grav\Plugin\SitemapPlugin::autoload(): ClassLoader {#186 …4}
11 => Grav\Plugin\WidgetPlugin::setup() {#187 …3}
12 => Grav\Plugin\LoginPlugin::initializeSession(): void {#188 …4}
13 => Grav\Plugin\AdminPlugin::onPluginsInitialized() {#189 …3}
14 => Grav\Plugin\AdvancedPageCachePlugin::onPluginsInitialized(): void {#190 …4}
15 => Grav\Plugin\LoginPlugin::initializeLogin(): void {#191 …4}
16 => Grav\Plugin\ShortcodeCorePlugin::onPluginsInitialized() {#192 …3}
17 => Grav\Plugin\AdminPowerToolsPlugin::onPluginsInitialized() {#193 …3}
18 => Grav\Plugin\ArchivesPlugin::onPluginsInitialized() {#194 …3}
19 => Grav\Plugin\BacklinksPlugin::onPluginsInitialized() {#195 …3}
20 => Grav\Plugin\CommentsPlugin::onPluginsInitialized() {#196 …3}
21 => Grav\Plugin\CoreServiceManagerPlugin::onPluginsInitialized() {#197 …3}
22 => Grav\Plugin\EditorPlugin::onPluginsInitialized() {#198 …3}
23 => Grav\Plugin\EmailPlugin::onPluginsInitialized() {#199 …3}
24 => Grav\Plugin\ExternalLinksPlugin::onPluginsInitialized() {#200 …3}
25 => Grav\Plugin\FeedPlugin::onPluginsInitialized() {#201 …3}
26 => Grav\Plugin\FlexObjectsPlugin::onPluginsInitialized(): void {#202 …4}
27 => Grav\Plugin\FormPlugin::onPluginsInitialized(): void {#203 …4}
28 => Grav\Plugin\GoogleAnalyticsPlugin::onPluginsInitialized(): void {#204 …4}
29 => Grav\Plugin\JSCommentsPlugin::onPluginsInitialized() {#205 …3}
30 => Grav\Plugin\MaintenancePlugin::onPluginsInitialized() {#206 …3}
31 => Grav\Plugin\MinifyHtmlPlugin::onPluginsInitialized() {#207 …3}
32 => Grav\Plugin\PaginationPlugin::onPluginsInitialized() {#208 …3}
33 => Grav\Plugin\ReadingTimePlugin::onPluginsInitialized() {#209 …3}
34 => Grav\Plugin\RelatedPagesPlugin::onPluginsInitialized() {#210 …3}
35 => Grav\Plugin\seoPlugin::onPluginsInitialized() {#211 …3}
36 => Grav\Plugin\SimpleResponsiveTablesPlugin::onPluginsInitialized() {#212 …3}
37 => Grav\Plugin\SimplesearchPlugin::onPluginsInitialized() {#213 …3}
38 => Grav\Plugin\SitemapPlugin::onPluginsInitialized() {#214 …3}
39 => Grav\Plugin\SocialButtonsPlugin::onPluginsInitialized() {#215 …3}
40 => Grav\Plugin\SubscriberPlugin::onPluginsInitialized() {#216 …3}
41 => Grav\Plugin\WidgetPlugin::onPluginsInitialized() {#217 …3}
42 => Grav\Plugin\YoutubePlugin::onPluginsInitialized() {#218 …3}
]
"onPluginsInitialized"
RocketTheme\Toolbox\Event\Event {#175}
/srv/disk8/2197592/www/quoipro.com/system/src/Grav/Common/Grav.php
return $event;
}
/**
* Fires an event with optional parameters.
*
* @param string $eventName
* @param Event|null $event
* @return Event
*/
public function fireEvent($eventName, Event $event = null)
{
/** @var EventDispatcherInterface $events */
$events = $this['events'];
if (null === $event) {
$event = new Event();
}
$timestamp = microtime(true);
$events->dispatch($event, $eventName);
/** @var Debugger $debugger */
$debugger = $this['debugger'];
$debugger->addEvent($eventName, $event, $events, $timestamp);
return $event;
}
/**
* Set the final content length for the page and flush the buffer
*
* @return void
*/
public function shutdown(): void
{
// Prevent user abort allowing onShutdown event to run without interruptions.
if (function_exists('ignore_user_abort')) {
@ignore_user_abort(true);
}
Arguments
RocketTheme\Toolbox\Event\Event {#175}
"onPluginsInitialized"
/srv/disk8/2197592/www/quoipro.com/system/src/Grav/Common/Processors/PluginsProcessor.php
* Class PluginsProcessor
* @package Grav\Common\Processors
*/
class PluginsProcessor extends ProcessorBase
{
/** @var string */
public $id = 'plugins';
/** @var string */
public $title = 'Initialize Plugins';
/**
* @param ServerRequestInterface $request
* @param RequestHandlerInterface $handler
* @return ResponseInterface
*/
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
{
$this->startTimer();
$grav = $this->container;
$grav->fireEvent('onPluginsInitialized');
$this->stopTimer();
return $handler->handle($request);
}
}
Arguments
/srv/disk8/2197592/www/quoipro.com/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
protected $handler;
/** @var ContainerInterface|null */
protected $container;
/**
* {@inheritdoc}
* @throws InvalidArgumentException
*/
public function handle(ServerRequestInterface $request): ResponseInterface
{
$middleware = array_shift($this->middleware);
// Use default callable if there is no middleware.
if ($middleware === null) {
return call_user_func($this->handler, $request);
}
if ($middleware instanceof MiddlewareInterface) {
return $middleware->process($request, clone $this);
}
if (null === $this->container || !$this->container->has($middleware)) {
throw new InvalidArgumentException(
sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
$middleware
);
}
array_unshift($this->middleware, $this->container->get($middleware));
return $this->handle($request);
}
}
Arguments
Nyholm\Psr7\ServerRequest {#65}
Grav\Framework\RequestHandler\RequestHandler {#174}
/srv/disk8/2197592/www/quoipro.com/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
// Use default callable if there is no middleware.
if ($middleware === null) {
return call_user_func($this->handler, $request);
}
if ($middleware instanceof MiddlewareInterface) {
return $middleware->process($request, clone $this);
}
if (null === $this->container || !$this->container->has($middleware)) {
throw new InvalidArgumentException(
sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
$middleware
);
}
array_unshift($this->middleware, $this->container->get($middleware));
return $this->handle($request);
}
}
Arguments
Nyholm\Psr7\ServerRequest {#65}
/srv/disk8/2197592/www/quoipro.com/system/src/Grav/Common/Processors/InitializeProcessor.php
// Initialize URI (uses session, see issue #3269).
$this->initializeUri($config);
// Grav may return redirect response right away.
$redirectCode = (int)$config->get('system.pages.redirect_trailing_slash', 1);
if ($redirectCode) {
$response = $this->handleRedirectRequest($request, $redirectCode > 300 ? $redirectCode : null);
if ($response) {
$this->stopTimer('_init');
return $response;
}
}
$this->stopTimer('_init');
// Wrap call to next handler so that debugger can profile it.
/** @var Response $response */
$response = $debugger->profile(static function () use ($handler, $request) {
return $handler->handle($request);
});
// Log both request and response and return the response.
return $debugger->logRequest($request, $response);
}
public function processCli(): void
{
// Load configuration.
$config = $this->initializeConfig();
// Initialize logger.
$this->initializeLogger($config);
// Disable debugger.
$this->container['debugger']->enabled(false);
// Set timezone, locale.
$this->initializeLocale($config);
Arguments
Nyholm\Psr7\ServerRequest {#65}
/srv/disk8/2197592/www/quoipro.com/system/src/Grav/Common/Debugger.php
}
$this->addMeasures();
$this->addDeprecations();
$this->timers = [];
return $this->debugbar->getData();
}
/**
* Hierarchical Profiler support.
*
* @param callable $callable
* @param string|null $message
* @return mixed
*/
public function profile(callable $callable, string $message = null)
{
$this->startProfiling();
$response = $callable();
$this->stopProfiling($message);
return $response;
}
public function addTwigProfiler(Environment $twig): void
{
$clockwork = $this->getClockwork();
if ($clockwork) {
$source = new TwigClockworkDataSource($twig);
$source->listenToEvents();
$clockwork->addDataSource($source);
}
}
/**
* Start profiling code.
*
* @return void
*/
/srv/disk8/2197592/www/quoipro.com/system/src/Grav/Common/Processors/InitializeProcessor.php
// Initialize URI (uses session, see issue #3269).
$this->initializeUri($config);
// Grav may return redirect response right away.
$redirectCode = (int)$config->get('system.pages.redirect_trailing_slash', 1);
if ($redirectCode) {
$response = $this->handleRedirectRequest($request, $redirectCode > 300 ? $redirectCode : null);
if ($response) {
$this->stopTimer('_init');
return $response;
}
}
$this->stopTimer('_init');
// Wrap call to next handler so that debugger can profile it.
/** @var Response $response */
$response = $debugger->profile(static function () use ($handler, $request) {
return $handler->handle($request);
});
// Log both request and response and return the response.
return $debugger->logRequest($request, $response);
}
public function processCli(): void
{
// Load configuration.
$config = $this->initializeConfig();
// Initialize logger.
$this->initializeLogger($config);
// Disable debugger.
$this->container['debugger']->enabled(false);
// Set timezone, locale.
$this->initializeLocale($config);
Arguments
Grav\Common\Processors\InitializeProcessor::{closure:Grav\Common\Processors\InitializeProcessor::process():129}() {#172 …2}
/srv/disk8/2197592/www/quoipro.com/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
protected $handler;
/** @var ContainerInterface|null */
protected $container;
/**
* {@inheritdoc}
* @throws InvalidArgumentException
*/
public function handle(ServerRequestInterface $request): ResponseInterface
{
$middleware = array_shift($this->middleware);
// Use default callable if there is no middleware.
if ($middleware === null) {
return call_user_func($this->handler, $request);
}
if ($middleware instanceof MiddlewareInterface) {
return $middleware->process($request, clone $this);
}
if (null === $this->container || !$this->container->has($middleware)) {
throw new InvalidArgumentException(
sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
$middleware
);
}
array_unshift($this->middleware, $this->container->get($middleware));
return $this->handle($request);
}
}
Arguments
Nyholm\Psr7\ServerRequest {#65}
Grav\Framework\RequestHandler\RequestHandler {#89}
/srv/disk8/2197592/www/quoipro.com/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
// Use default callable if there is no middleware.
if ($middleware === null) {
return call_user_func($this->handler, $request);
}
if ($middleware instanceof MiddlewareInterface) {
return $middleware->process($request, clone $this);
}
if (null === $this->container || !$this->container->has($middleware)) {
throw new InvalidArgumentException(
sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
$middleware
);
}
array_unshift($this->middleware, $this->container->get($middleware));
return $this->handle($request);
}
}
Arguments
Nyholm\Psr7\ServerRequest {#65}
/srv/disk8/2197592/www/quoipro.com/system/src/Grav/Framework/RequestHandler/Middlewares/MultipartRequestSupport.php
use function in_array;
use function is_array;
use function strlen;
/**
* Multipart request support for PUT and PATCH.
*/
class MultipartRequestSupport implements MiddlewareInterface
{
/**
* @param ServerRequestInterface $request
* @param RequestHandlerInterface $handler
* @return ResponseInterface
*/
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
{
$contentType = $request->getHeaderLine('content-type');
$method = $request->getMethod();
if (!str_starts_with($contentType, 'multipart/form-data') || !in_array($method, ['PUT', 'PATH'], true)) {
return $handler->handle($request);
}
$boundary = explode('; boundary=', $contentType, 2)[1] ?? '';
$parts = explode("--{$boundary}", $request->getBody()->getContents());
$parts = array_slice($parts, 1, count($parts) - 2);
$params = [];
$files = [];
foreach ($parts as $part) {
$this->processPart($params, $files, $part);
}
return $handler->handle($request->withParsedBody($params)->withUploadedFiles($files));
}
/**
* @param array $params
* @param array $files
* @param string $part
* @return void
Arguments
Nyholm\Psr7\ServerRequest {#65}
/srv/disk8/2197592/www/quoipro.com/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
protected $handler;
/** @var ContainerInterface|null */
protected $container;
/**
* {@inheritdoc}
* @throws InvalidArgumentException
*/
public function handle(ServerRequestInterface $request): ResponseInterface
{
$middleware = array_shift($this->middleware);
// Use default callable if there is no middleware.
if ($middleware === null) {
return call_user_func($this->handler, $request);
}
if ($middleware instanceof MiddlewareInterface) {
return $middleware->process($request, clone $this);
}
if (null === $this->container || !$this->container->has($middleware)) {
throw new InvalidArgumentException(
sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
$middleware
);
}
array_unshift($this->middleware, $this->container->get($middleware));
return $this->handle($request);
}
}
Arguments
Nyholm\Psr7\ServerRequest {#65}
Grav\Framework\RequestHandler\RequestHandler {#87}
/srv/disk8/2197592/www/quoipro.com/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
// Use default callable if there is no middleware.
if ($middleware === null) {
return call_user_func($this->handler, $request);
}
if ($middleware instanceof MiddlewareInterface) {
return $middleware->process($request, clone $this);
}
if (null === $this->container || !$this->container->has($middleware)) {
throw new InvalidArgumentException(
sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
$middleware
);
}
array_unshift($this->middleware, $this->container->get($middleware));
return $this->handle($request);
}
}
Arguments
Nyholm\Psr7\ServerRequest {#65}
/srv/disk8/2197592/www/quoipro.com/system/src/Grav/Common/Grav.php
},
'pagesProcessor' => function () {
return new PagesProcessor($this);
},
'debuggerAssetsProcessor' => function () {
return new DebuggerAssetsProcessor($this);
},
'renderProcessor' => function () {
return new RenderProcessor($this);
},
]
);
$default = static function () {
return new Response(404, ['Expires' => 0, 'Cache-Control' => 'no-store, max-age=0'], 'Not Found');
};
$collection = new RequestHandler($this->middleware, $default, $container);
$response = $collection->handle($this['request']);
$body = $response->getBody();
/** @var Messages $messages */
$messages = $this['messages'];
// Prevent caching if session messages were displayed in the page.
$noCache = $messages->isCleared();
if ($noCache) {
$response = $response->withHeader('Cache-Control', 'no-store, max-age=0');
}
// Handle ETag and If-None-Match headers.
if ($response->getHeaderLine('ETag') === '1') {
$etag = md5($body);
$response = $response->withHeader('ETag', '"' . $etag . '"');
$search = trim($this['request']->getHeaderLine('If-None-Match'), '"');
if ($noCache === false && $search === $etag) {
$response = $response->withStatus(304);
$body = '';
Arguments
Nyholm\Psr7\ServerRequest {#65}
/srv/disk8/2197592/www/quoipro.com/index.php
// Register the auto-loader.
$loader = require $autoload;
// Set timezone to default, falls back to system if php.ini not set
date_default_timezone_set(@date_default_timezone_get());
// Set internal encoding.
@ini_set('default_charset', 'UTF-8');
mb_internal_encoding('UTF-8');
use Grav\Common\Grav;
use RocketTheme\Toolbox\Event\Event;
// Get the Grav instance
$grav = Grav::instance(array('loader' => $loader));
// Process the page
try {
$grav->process();
} catch (\Error|\Exception $e) {
$grav->fireEvent('onFatalException', new Event(array('exception' => $e)));
throw $e;
}