/srv/disk8/2197592/www/quoipro.com/system/src/Grav/Common/Grav.php
if ($response->getHeaderLine('Grav-Internal-SkipShutdown') !== '1') {
register_shutdown_function([$this, 'shutdown']);
}
}
/**
* Clean any output buffers. Useful when exiting from the application.
*
* Please use $grav->close() and $grav->redirect() instead of calling this one!
*
* @return void
*/
public function cleanOutputBuffers(): void
{
// Make sure nothing extra gets written to the response.
while (ob_get_level()) {
ob_end_clean();
}
// Work around PHP bug #8218 (8.0.17 & 8.1.4).
header_remove('Content-Encoding');
}
/**
* Terminates Grav request with a response.
*
* Please use this method instead of calling `die();` or `exit();`. Note that you need to create a response object.
*
* @param ResponseInterface $response
* @return never-return
*/
public function close(ResponseInterface $response): void
{
$this->cleanOutputBuffers();
// Close the session.
if (isset($this['session'])) {
$this['session']->close();
}
/** @var ServerRequestInterface $request */
Arguments
"Cannot modify header information - headers already sent by (output started at /srv/disk8/2197592/www/quoipro.com/system/src/Grav/Common/Grav.php:203)"
/srv/disk8/2197592/www/quoipro.com/system/src/Grav/Common/Grav.php
if ($response->getHeaderLine('Grav-Internal-SkipShutdown') !== '1') {
register_shutdown_function([$this, 'shutdown']);
}
}
/**
* Clean any output buffers. Useful when exiting from the application.
*
* Please use $grav->close() and $grav->redirect() instead of calling this one!
*
* @return void
*/
public function cleanOutputBuffers(): void
{
// Make sure nothing extra gets written to the response.
while (ob_get_level()) {
ob_end_clean();
}
// Work around PHP bug #8218 (8.0.17 & 8.1.4).
header_remove('Content-Encoding');
}
/**
* Terminates Grav request with a response.
*
* Please use this method instead of calling `die();` or `exit();`. Note that you need to create a response object.
*
* @param ResponseInterface $response
* @return never-return
*/
public function close(ResponseInterface $response): void
{
$this->cleanOutputBuffers();
// Close the session.
if (isset($this['session'])) {
$this['session']->close();
}
/** @var ServerRequestInterface $request */
Arguments
/srv/disk8/2197592/www/quoipro.com/system/src/Grav/Common/Utils.php
* @param string $file the full path to the file to be downloaded
* @param bool $force_download as opposed to letting browser choose if to download or render
* @param int $sec Throttling, try 0.1 for some speed throttling of downloads
* @param int $bytes Size of chunks to send in bytes. Default is 1024
* @param array $options Extra options: [mime, download_name, expires]
* @throws Exception
*/
public static function download($file, $force_download = true, $sec = 0, $bytes = 1024, array $options = [])
{
$grav = Grav::instance();
if (file_exists($file)) {
// fire download event
$grav->fireEvent('onBeforeDownload', new Event(['file' => $file, 'options' => &$options]));
$file_parts = static::pathinfo($file);
$mimetype = $options['mime'] ?? static::getMimeByExtension($file_parts['extension']);
$size = filesize($file); // File size
$grav->cleanOutputBuffers();
// required for IE, otherwise Content-Disposition may be ignored
if (ini_get('zlib.output_compression')) {
ini_set('zlib.output_compression', 'Off');
}
header('Content-Type: ' . $mimetype);
header('Accept-Ranges: bytes');
if ($force_download) {
// output the regular HTTP headers
header('Content-Disposition: attachment; filename="' . ($options['download_name'] ?? $file_parts['basename']) . '"');
}
// multipart-download and download resuming support
if (isset($_SERVER['HTTP_RANGE'])) {
[$a, $range] = explode('=', $_SERVER['HTTP_RANGE'], 2);
[$range] = explode(',', $range, 2);
[$range, $range_end] = explode('-', $range);
$range = (int)$range;
/srv/disk8/2197592/www/quoipro.com/system/src/Grav/Common/Grav.php
if (!empty($fallback_types) && !in_array($uri_extension, $fallback_types, true)) {
return false;
}
if (!array_key_exists($uri_extension, $supported_types)) {
return false;
}
if ($page) {
$media = $page->media()->all();
// if this is a media object, try actions first
if (isset($media[$media_file])) {
/** @var Medium $medium */
$medium = $media[$media_file];
foreach ($uri->query(null, true) as $action => $params) {
if (in_array($action, ImageMedium::$magic_actions, true)) {
call_user_func_array([&$medium, $action], explode(',', $params));
}
}
Utils::download($medium->path(), false);
}
// unsupported media type, try to download it...
if ($uri_extension) {
$extension = $uri_extension;
} elseif (isset($path_parts['extension'])) {
$extension = $path_parts['extension'];
} else {
$extension = null;
}
if ($extension) {
$download = true;
if (in_array(ltrim($extension, '.'), $config->get('system.media.unsupported_inline_types', []), true)) {
$download = false;
}
Utils::download($page->path() . DIRECTORY_SEPARATOR . $uri->basename(), $download);
}
}
Arguments
"/srv/disk8/2197592/www/quoipro.com/user/pages/01.inicio/el-parque-guasu-y-la-ecologia-urbana-en-asuncion/guasu3.png"
false
/srv/disk8/2197592/www/quoipro.com/system/src/Grav/Common/Service/PagesServiceProvider.php
}
// Default route test and redirect
if ($redirectCode) {
$uriExtension = $uri->extension();
$uriExtension = null !== $uriExtension ? '.' . $uriExtension : '';
if ($route !== $path || ($pageExtension !== $uriExtension
&& \in_array($pageExtension, ['', '.htm', '.html'], true)
&& \in_array($uriExtension, ['', '.htm', '.html'], true))) {
$grav->redirect($url, $redirectCode);
}
}
}
}
// if page is not found, try some fallback stuff
if (!$page || !$page->routable()) {
// Try fallback URL stuff...
$page = $grav->fallbackUrl($path);
if (!$page) {
$path = $grav['locator']->findResource('system://pages/notfound.md');
$page = new Page();
$page->init(new SplFileInfo($path));
$page->routable(false);
}
}
return $page;
};
}
}
Arguments
"/inicio/el-parque-guasu-y-la-ecologia-urbana-en-asuncion/guasu3.png"
/srv/disk8/2197592/www/quoipro.com/vendor/pimple/pimple/src/Pimple/Container.php
{
if (!isset($this->keys[$id])) {
throw new UnknownIdentifierException($id);
}
if (
isset($this->raw[$id])
|| !\is_object($this->values[$id])
|| isset($this->protected[$this->values[$id]])
|| !\method_exists($this->values[$id], '__invoke')
) {
return $this->values[$id];
}
if (isset($this->factories[$this->values[$id]])) {
return $this->values[$id]($this);
}
$raw = $this->values[$id];
$val = $this->values[$id] = $raw($this);
$this->raw[$id] = $raw;
$this->frozen[$id] = true;
return $val;
}
/**
* Checks if a parameter or an object is set.
*
* @param string $id The unique identifier for the parameter or object
*
* @return bool
*/
#[\ReturnTypeWillChange]
public function offsetExists($id)
{
return isset($this->keys[$id]);
}
Arguments
/srv/disk8/2197592/www/quoipro.com/user/plugins/simplesearch/simplesearch.php
{
if ($this->isAdmin()) {
return;
}
$this->enable([
'onPagesInitialized' => ['onPagesInitialized', 0],
'onTwigSiteVariables' => ['onTwigSiteVariables', 0]
]);
}
/**
* Build search results.
*
* @return void
*/
public function onPagesInitialized()
{
$page = $this->grav['page'];
$route = null;
if (isset($page->header()->simplesearch['route'])) {
$route = $page->header()->simplesearch['route'];
// Support `route: '@self'` syntax
if ($route === '@self') {
$route = $page->route();
$page->header()->simplesearch['route'] = $route;
}
}
// If a page exists merge the configs
if (isset($page)) {
$this->config->set('plugins.simplesearch', $this->mergeConfig($page));
}
/** @var Uri $uri */
$uri = $this->grav['uri'];
$query = $uri->param('query') ?: $uri->query('query');
Arguments
/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 {#452}
"onPagesInitialized"
Symfony\Component\EventDispatcher\EventDispatcher {#144
-listeners: array:63 [
"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:3 [
0 => array:7 [
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"
]
4 => array:2 [
0 => Grav\Plugin\FormPlugin {#111}
1 => "onPageInitialized"
]
5 => array:2 [
0 => Grav\Plugin\PaginationPlugin {#119}
1 => "onPageInitialized"
]
6 => array:2 [
0 => Grav\Plugin\RelatedPagesPlugin {#123}
1 => "onPageInitialized"
]
]
10 => array:2 [
0 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "authorizeLoginPage"
]
1 => array:2 [
0 => Grav\Plugin\CommentsPlugin {#100}
1 => "onPageInitialized"
]
]
10000 => array:1 [
0 => array:2 [
0 => Grav\Plugin\FlexObjectsPlugin {#110}
1 => "authorizePage"
]
]
]
"onShutdown" => array:2 [
1000 => array:1 [
0 => array:2 [
0 => Grav\Plugin\AdminPlugin {#95}
1 => "onShutdown"
]
]
0 => array:1 [
0 => array:2 [
0 => Grav\Plugin\BacklinksPlugin {#99}
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:11 [
0 => array:2 [
0 => Grav\Plugin\EditorButtonsPlugin {#105}
1 => "onTwigSiteVariables"
]
1 => array:2 [
0 => Grav\Plugin\MarkdownNoticesPlugin {#117}
1 => "onTwigSiteVariables"
]
2 => array:2 [
0 => Grav\Plugin\ArchivesPlugin {#98}
1 => "onTwigSiteVariables"
]
3 => array:2 [
0 => Grav\Plugin\CommentsPlugin {#100}
1 => "onTwigSiteVariables"
]
4 => array:2 [
0 => Grav\Plugin\ExternalLinksPlugin {#108}
1 => "onTwigSiteVariables"
]
5 => array:2 [
0 => Grav\Plugin\FormPlugin {#111}
1 => "onTwigVariables"
]
6 => array:2 [
0 => Grav\Plugin\SimpleResponsiveTablesPlugin {#127}
1 => "onTwigSiteVariables"
]
7 => array:2 [
0 => Grav\Plugin\SimplesearchPlugin {#128}
1 => "onTwigSiteVariables"
]
8 => array:2 [
0 => Grav\Plugin\SocialButtonsPlugin {#130}
1 => "onTwigSiteVariables"
]
9 => array:2 [
0 => Grav\Plugin\SubscriberPlugin {#131}
1 => "onTwigSiteVariables"
]
10 => array:2 [
0 => Grav\Plugin\YoutubePlugin {#133}
1 => "onTwigSiteVariables"
]
]
-100000 => array:1 [
0 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "onTwigSiteVariables"
]
]
]
"onFormProcessed" => array:1 [
0 => array:3 [
0 => array:2 [
0 => Grav\Plugin\EmailPlugin {#106}
1 => "onFormProcessed"
]
1 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "onFormProcessed"
]
2 => array:2 [
0 => Grav\Plugin\CommentsPlugin {#100}
1 => "onFormProcessed"
]
]
]
"onTwigTemplatePaths" => array:2 [
0 => array:18 [
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"
]
6 => array:2 [
0 => Grav\Plugin\ShortcodeCorePlugin {#125}
1 => "onTwigTemplatePaths"
]
7 => array:2 [
0 => Grav\Plugin\AdminPowerToolsPlugin {#94}
1 => "onTwigTemplatePaths"
]
8 => array:2 [
0 => Grav\Plugin\ArchivesPlugin {#98}
1 => "onTwigTemplatePaths"
]
9 => array:2 [
0 => Grav\Plugin\CommentsPlugin {#100}
1 => "onTwigTemplatePaths"
]
10 => array:2 [
0 => Grav\Plugin\FlexObjectsPlugin {#110}
1 => "onTwigTemplatePaths"
]
11 => array:2 [
0 => Grav\Plugin\JSCommentsPlugin {#114}
1 => "onTwigTemplatePaths"
]
12 => array:2 [
0 => Grav\Plugin\MaintenancePlugin {#116}
1 => "onTwigTemplatePaths"
]
13 => array:2 [
0 => Grav\Plugin\PaginationPlugin {#119}
1 => "onTwigTemplatePaths"
]
14 => array:2 [
0 => Grav\Plugin\RelatedPagesPlugin {#123}
1 => "onTwigTemplatePaths"
]
15 => array:2 [
0 => Grav\Plugin\seoPlugin {#124}
1 => "onTwigTemplatePaths"
]
16 => array:2 [
0 => Grav\Plugin\SocialButtonsPlugin {#130}
1 => "onTwigTemplatePaths"
]
17 => array:2 [
0 => Grav\Plugin\YoutubePlugin {#133}
1 => "onTwigTemplatePaths"
]
]
-10 => array:1 [
0 => array:2 [
0 => Grav\Plugin\ErrorPlugin {#107}
1 => "onTwigTemplatePaths"
]
]
]
"onSchedulerInitialized" => array:1 [
0 => array:3 [
0 => array:2 [
0 => Grav\Plugin\EmailPlugin {#106}
1 => "onSchedulerInitialized"
]
1 => array:2 [
0 => Grav\Common\Cache {#220}
1 => "onSchedulerInitialized"
]
2 => array:2 [
0 => Grav\Common\Backup\Backups {#345}
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 [
1000 => array:1 [
0 => array:2 [
0 => Grav\Plugin\WidgetPlugin {#132}
1 => "onTwigExtensions"
]
]
0 => array:6 [
0 => array:2 [
0 => Grav\Plugin\FormPlugin {#111}
1 => "onTwigExtensions"
]
1 => array:2 [
0 => Grav\Plugin\SubscriberPlugin {#131}
1 => "onTwigExtensions"
]
2 => array:2 [
0 => Grav\Plugin\JSCommentsPlugin {#114}
1 => "onTwigExtensions"
]
3 => array:2 [
0 => Grav\Plugin\PaginationPlugin {#119}
1 => "onTwigExtensions"
]
4 => array:2 [
0 => Grav\Plugin\ReadingTimePlugin {#122}
1 => "onTwigExtensions"
]
5 => array:2 [
0 => Grav\Plugin\YoutubePlugin {#133}
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:3 [
1000000 => array:1 [
0 => array:2 [
0 => Grav\Plugin\MaintenancePlugin {#116}
1 => "onPagesInitialized"
]
]
0 => array:5 [
0 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "storeReferrerPage"
]
1 => array:2 [
0 => Grav\Plugin\LoginPlugin {#115}
1 => "pageVisibility"
]
2 => array:2 [
0 => Grav\Plugin\BacklinksPlugin {#99}
1 => "onPagesInitialized"
]
3 => array:2 [
0 => Grav\Plugin\FormPlugin {#111}
1 => "onPagesInitialized"
]
4 => array:2 [
0 => Grav\Plugin\SimplesearchPlugin {#128}
1 => "onPagesInitialized"
]
]
-10000 => array:1 [
0 => array:2 [
0 => Grav\Plugin\FlexObjectsPlugin {#110}
1 => "onPagesInitialized"
]
]
]
"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:2 [
0 => array:2 [
0 => Grav\Plugin\MarkdownNoticesPlugin {#117}
1 => "onMarkdownInitialized"
]
1 => array:2 [
0 => Grav\Plugin\ShortcodeCorePlugin {#125}
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:3 [
0 => array:2 [
0 => Grav\Plugin\ShortcodeOwlCarouselPlugin {#126}
1 => "onShortcodeHandlers"
]
1 => array:2 [
0 => Grav\Plugin\ShortcodeCorePlugin {#125}
1 => "onShortcodeHandlers"
]
2 => array:2 [
0 => Grav\Plugin\YoutubePlugin {#133}
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"
]
]
]
"onOutputRendered" => array:1 [
1000 => array:1 [
0 => array:2 [
0 => Grav\Plugin\AdvancedPageCachePlugin {#97}
1 => "onOutputRendered"
]
]
]
"onThemeInitialized" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Grav\Plugin\ShortcodeCorePlugin {#125}
1 => "onThemeInitialized"
]
]
]
"onPageContentRaw" => array:1 [
0 => array:4 [
0 => array:2 [
0 => Grav\Plugin\ShortcodeCorePlugin {#125}
1 => "onPageContentRaw"
]
1 => array:2 [
0 => Grav\Plugin\AdminPowerToolsPlugin {#94}
1 => "onPageContentRaw"
]
2 => array:2 [
0 => Grav\Plugin\WidgetPlugin {#132}
1 => "onPageContentRaw"
]
3 => array:2 [
0 => Grav\Plugin\YoutubePlugin {#133}
1 => "onPageContentRaw"
]
]
]
"onPageContentProcessed" => array:2 [
-10 => array:1 [
0 => array:2 [
0 => Grav\Plugin\ShortcodeCorePlugin {#125}
1 => "onPageContentProcessed"
]
]
0 => array:2 [
0 => array:2 [
0 => Grav\Plugin\ExternalLinksPlugin {#108}
1 => "onPageContentProcessed"
]
1 => array:2 [
0 => Grav\Plugin\SimpleResponsiveTablesPlugin {#127}
1 => "onPageContentProcessed"
]
]
]
"onPageContent" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Grav\Plugin\ShortcodeCorePlugin {#125}
1 => "onPageContent"
]
]
]
"onTwigInitialized" => array:1 [
0 => array:4 [
0 => array:2 [
0 => Grav\Plugin\ShortcodeCorePlugin {#125}
1 => "onTwigInitialized"
]
1 => array:2 [
0 => Grav\Plugin\AdminPowerToolsPlugin {#94}
1 => "onTwigInitialized_site"
]
2 => array:2 [
0 => Grav\Plugin\ExternalLinksPlugin {#108}
1 => "onTwigInitialized"
]
3 => array:2 [
0 => Grav\Plugin\FormPlugin {#111}
1 => "onTwigInitialized"
]
]
]
"onPageProcessed" => array:1 [
0 => array:2 [
0 => array:2 [
0 => Grav\Plugin\ArchivesPlugin {#98}
1 => "onPageProcessed"
]
1 => array:2 [
0 => Grav\Plugin\FormPlugin {#111}
1 => "onPageProcessed"
]
]
]
"onFormPageHeaderProcessed" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Grav\Plugin\CommentsPlugin {#100}
1 => "onFormPageHeaderProcessed"
]
]
]
"onAssetsInitialized" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Grav\Plugin\CoreServiceManagerPlugin {#101}
1 => "onAssetsInitialized"
]
]
]
"onBeforeFlexFormInitialize" => array:1 [
-10 => array:1 [
0 => array:2 [
0 => Grav\Plugin\FlexObjectsPlugin {#110}
1 => "onBeforeFlexFormInitialize"
]
]
]
"onPageTask" => array:1 [
-10 => array:1 [
0 => array:2 [
0 => Grav\Plugin\FlexObjectsPlugin {#110}
1 => "onPageTask"
]
]
]
"onTwigPageVariables" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Grav\Plugin\FormPlugin {#111}
1 => "onTwigVariables"
]
]
]
"onFormValidationProcessed" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Grav\Plugin\FormPlugin {#111}
1 => "onFormValidationProcessed"
]
]
]
"onOutputGenerated" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Grav\Plugin\MinifyHtmlPlugin {#118}
1 => "onOutputGenerated"
]
]
]
]
-sorted: []
-optimized: array:19 [
"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}
]
"onUserLoginAuthenticate" => array:5 [
0 => Grav\Plugin\LoginPlugin::userLoginAuthenticateRateLimit(UserLoginEvent $event): void {#235 …4}
1 => Grav\Plugin\LoginPlugin::userLoginAuthenticateByRegistration(UserLoginEvent $event): void {#236 …4}
2 => Grav\Plugin\LoginPlugin::userLoginAuthenticateByRememberMe(UserLoginEvent $event): void {#237 …4}
3 => Grav\Plugin\LoginPlugin::userLoginAuthenticateByEmail(UserLoginEvent $event): void {#238 …4}
4 => Grav\Plugin\LoginPlugin::userLoginAuthenticate(UserLoginEvent $event): void {#239 …4}
]
"onUserLoginGuest" => array:1 [
0 => Grav\Plugin\LoginPlugin::userLoginGuest(UserLoginEvent $event): void {#230 …4}
]
"onThemeInitialized" => array:1 [
0 => Grav\Plugin\ShortcodeCorePlugin::onThemeInitialized() {#277 …3}
]
"onShortcodeHandlers" => array:3 [
0 => Grav\Plugin\ShortcodeOwlCarouselPlugin::onShortcodeHandlers(Event $e) {#279 …3}
1 => Grav\Plugin\ShortcodeCorePlugin::onShortcodeHandlers() {#280 …3}
2 => Grav\Plugin\YoutubePlugin::onShortcodeHandlers() {#281 …3}
]
"onRequestHandlerInit" => array:1 [
0 => Grav\Plugin\AdminPlugin::onRequestHandlerInit(RequestHandlerEvent $event) {#330 …3}
]
"onGetPageBlueprints" => array:1 [
0 => Grav\Plugin\WidgetPlugin::onGetPageBlueprints(Event $event) {#336 …3}
]
"onGetPageTemplates" => array:3 [
0 => Grav\Plugin\ErrorPlugin::onGetPageTemplates(Event $event): void {#335 …4}
1 => Grav\Plugin\SimplesearchPlugin::onGetPageTemplates(Event $event) {#338 …3}
2 => Grav\Plugin\WidgetPlugin::onGetPageTemplates(Event $event) {#339 …3}
]
"onSchedulerInitialized" => array:3 [
0 => Grav\Plugin\EmailPlugin::onSchedulerInitialized(Event $e) {#347 …3}
1 => Grav\Common\Cache::onSchedulerInitialized(Event $event) {#348 …3}
2 => Grav\Common\Backup\Backups::onSchedulerInitialized(Event $event) {#349 …3}
]
"onAssetsInitialized" => array:1 [
0 => Grav\Plugin\CoreServiceManagerPlugin::onAssetsInitialized() {#380 …3}
]
"onTwigTemplatePaths" => array:19 [
0 => Grav\Plugin\EmailPlugin::onTwigTemplatePaths() {#388 …3}
1 => Grav\Plugin\FormPlugin::onTwigTemplatePaths(): void {#389 …4}
2 => Grav\Plugin\LoginPlugin::onTwigTemplatePaths(): void {#390 …4}
3 => Grav\Plugin\ShortcodeOwlCarouselPlugin::onTwigTemplatePaths() {#391 …3}
4 => Grav\Plugin\SimplesearchPlugin::onTwigTemplatePaths() {#392 …3}
5 => Grav\Plugin\WidgetPlugin::onTwigTemplatePaths() {#393 …3}
6 => Grav\Plugin\ShortcodeCorePlugin::onTwigTemplatePaths() {#394 …3}
7 => Grav\Plugin\AdminPowerToolsPlugin::onTwigTemplatePaths() {#395 …3}
8 => Grav\Plugin\ArchivesPlugin::onTwigTemplatePaths() {#396 …3}
9 => Grav\Plugin\CommentsPlugin::onTwigTemplatePaths() {#397 …3}
10 => Grav\Plugin\FlexObjectsPlugin::onTwigTemplatePaths(): void {#398 …4}
11 => Grav\Plugin\JSCommentsPlugin::onTwigTemplatePaths() {#399 …3}
12 => Grav\Plugin\MaintenancePlugin::onTwigTemplatePaths() {#400 …3}
13 => Grav\Plugin\PaginationPlugin::onTwigTemplatePaths() {#401 …3}
14 => Grav\Plugin\RelatedPagesPlugin::onTwigTemplatePaths() {#402 …3}
15 => Grav\Plugin\seoPlugin::onTwigTemplatePaths() {#403 …3}
16 => Grav\Plugin\SocialButtonsPlugin::onTwigTemplatePaths() {#404 …3}
17 => Grav\Plugin\YoutubePlugin::onTwigTemplatePaths() {#405 …3}
18 => Grav\Plugin\ErrorPlugin::onTwigTemplatePaths(): void {#406 …4}
]
"onTwigInitialized" => array:4 [
0 => Grav\Plugin\ShortcodeCorePlugin::onTwigInitialized() {#418 …3}
1 => Grav\Plugin\AdminPowerToolsPlugin::onTwigInitialized_site() {#419 …3}
2 => Grav\Plugin\ExternalLinksPlugin::onTwigInitialized() {#420 …3}
3 => Grav\Plugin\FormPlugin::onTwigInitialized(): void {#421 …4}
]
"onTwigExtensions" => array:7 [
0 => Grav\Plugin\WidgetPlugin::onTwigExtensions() {#433 …3}
1 => Grav\Plugin\FormPlugin::onTwigExtensions(): void {#434 …4}
2 => Grav\Plugin\SubscriberPlugin::onTwigExtensions() {#435 …3}
3 => Grav\Plugin\JSCommentsPlugin::onTwigExtensions() {#436 …3}
4 => Grav\Plugin\PaginationPlugin::onTwigExtensions() {#437 …3}
5 => Grav\Plugin\ReadingTimePlugin::onTwigExtensions() {#438 …3}
6 => Grav\Plugin\YoutubePlugin::onTwigExtensions() {#439 …3}
]
"onPageProcessed" => array:2 [
0 => Grav\Plugin\ArchivesPlugin::onPageProcessed(Event $event) {#554 …3}
1 => Grav\Plugin\FormPlugin::onPageProcessed(Event $event): void {#555 …4}
]
"onFormPageHeaderProcessed" => array:1 [
0 => Grav\Plugin\CommentsPlugin::onFormPageHeaderProcessed(Event $event) {#557 …3}
]
"onPagesInitialized" => array:7 [
0 => Grav\Plugin\MaintenancePlugin::onPagesInitialized(Event $event) {#458 …3}
1 => Grav\Plugin\LoginPlugin::storeReferrerPage(): void {#457 …4}
2 => Grav\Plugin\LoginPlugin::pageVisibility(Event $event): void {#456 …4}
3 => Grav\Plugin\BacklinksPlugin::onPagesInitialized() {#455 …3}
4 => Grav\Plugin\FormPlugin::onPagesInitialized(): void {#454 …4}
5 => Grav\Plugin\SimplesearchPlugin::onPagesInitialized() {#540 …3}
6 => Grav\Plugin\FlexObjectsPlugin::onPagesInitialized(Event $event): void {#542 …4}
]
"onPageFallBackUrl" => array:1 [
0 => Grav\Plugin\LoginPlugin::authorizeFallBackUrl(): void {#537 …4}
]
"onFatalException" => array:1 [
0 => Grav\Plugin\ProblemsPlugin::onFatalException(): void {#329 …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:7 [
0 => Grav\Plugin\MaintenancePlugin::onPagesInitialized(Event $event) {#458 …3}
1 => Grav\Plugin\LoginPlugin::storeReferrerPage(): void {#457 …4}
2 => Grav\Plugin\LoginPlugin::pageVisibility(Event $event): void {#456 …4}
3 => Grav\Plugin\BacklinksPlugin::onPagesInitialized() {#455 …3}
4 => Grav\Plugin\FormPlugin::onPagesInitialized(): void {#454 …4}
5 => Grav\Plugin\SimplesearchPlugin::onPagesInitialized() {#540 …3}
6 => Grav\Plugin\FlexObjectsPlugin::onPagesInitialized(Event $event): void {#542 …4}
]
"onPagesInitialized"
RocketTheme\Toolbox\Event\Event {#452}
/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:7 [
0 => Grav\Plugin\MaintenancePlugin::onPagesInitialized(Event $event) {#458 …3}
1 => Grav\Plugin\LoginPlugin::storeReferrerPage(): void {#457 …4}
2 => Grav\Plugin\LoginPlugin::pageVisibility(Event $event): void {#456 …4}
3 => Grav\Plugin\BacklinksPlugin::onPagesInitialized() {#455 …3}
4 => Grav\Plugin\FormPlugin::onPagesInitialized(): void {#454 …4}
5 => Grav\Plugin\SimplesearchPlugin::onPagesInitialized() {#540 …3}
6 => Grav\Plugin\FlexObjectsPlugin::onPagesInitialized(Event $event): void {#542 …4}
]
"onPagesInitialized"
RocketTheme\Toolbox\Event\Event {#452}
/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 {#452}
"onPagesInitialized"
/srv/disk8/2197592/www/quoipro.com/system/src/Grav/Common/Processors/PagesProcessor.php
/** @var string */
public $title = 'Pages';
/**
* @param ServerRequestInterface $request
* @param RequestHandlerInterface $handler
* @return ResponseInterface
*/
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
{
$this->startTimer();
// Dump Cache state
$this->container['debugger']->addMessage($this->container['cache']->getCacheStatus());
$this->container['pages']->init();
$route = $this->container['route'];
$this->container->fireEvent('onPagesInitialized', new Event(
[
'pages' => $this->container['pages'],
'route' => $route,
'request' => $request
]
));
$this->container->fireEvent('onPageInitialized', new Event(
[
'page' => $this->container['page'],
'route' => $route,
'request' => $request
]
));
/** @var PageInterface $page */
$page = $this->container['page'];
if (!$page->routable()) {
$exception = new RequestException($request, 'Page Not Found', 404);
// If no page found, fire event
Arguments
"onPagesInitialized"
RocketTheme\Toolbox\Event\Event {#452}
/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 {#283}
Grav\Framework\RequestHandler\RequestHandler {#450}
/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 {#283}
/srv/disk8/2197592/www/quoipro.com/system/src/Grav/Common/Processors/TwigProcessor.php
*/
class TwigProcessor extends ProcessorBase
{
/** @var string */
public $id = 'twig';
/** @var string */
public $title = 'Twig';
/**
* @param ServerRequestInterface $request
* @param RequestHandlerInterface $handler
* @return ResponseInterface
*/
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
{
$this->startTimer();
$this->container['twig']->init();
$this->stopTimer();
return $handler->handle($request);
}
}
Arguments
Nyholm\Psr7\ServerRequest {#283}
/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 {#283}
Grav\Framework\RequestHandler\RequestHandler {#386}
/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 {#283}
/srv/disk8/2197592/www/quoipro.com/system/src/Grav/Common/Processors/AssetsProcessor.php
class AssetsProcessor extends ProcessorBase
{
/** @var string */
public $id = '_assets';
/** @var string */
public $title = 'Assets';
/**
* @param ServerRequestInterface $request
* @param RequestHandlerInterface $handler
* @return ResponseInterface
*/
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
{
$this->startTimer();
$this->container['assets']->init();
$this->container->fireEvent('onAssetsInitialized');
$this->stopTimer();
return $handler->handle($request);
}
}
Arguments
Nyholm\Psr7\ServerRequest {#283}
/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 {#283}
Grav\Framework\RequestHandler\RequestHandler {#377}
/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 {#283}
/srv/disk8/2197592/www/quoipro.com/system/src/Grav/Common/Processors/SchedulerProcessor.php
class SchedulerProcessor extends ProcessorBase
{
/** @var string */
public $id = '_scheduler';
/** @var string */
public $title = 'Scheduler';
/**
* @param ServerRequestInterface $request
* @param RequestHandlerInterface $handler
* @return ResponseInterface
*/
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
{
$this->startTimer();
$scheduler = $this->container['scheduler'];
$this->container->fireEvent('onSchedulerInitialized', new Event(['scheduler' => $scheduler]));
$this->stopTimer();
return $handler->handle($request);
}
}
Arguments
Nyholm\Psr7\ServerRequest {#283}
/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 {#283}
Grav\Framework\RequestHandler\RequestHandler {#344}
/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 {#283}
/srv/disk8/2197592/www/quoipro.com/system/src/Grav/Common/Processors/BackupsProcessor.php
class BackupsProcessor extends ProcessorBase
{
/** @var string */
public $id = '_backups';
/** @var string */
public $title = 'Backups';
/**
* @param ServerRequestInterface $request
* @param RequestHandlerInterface $handler
* @return ResponseInterface
*/
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
{
$this->startTimer();
$backups = $this->container['backups'];
$backups->init();
$this->stopTimer();
return $handler->handle($request);
}
}
Arguments
Nyholm\Psr7\ServerRequest {#283}
/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 {#283}
Grav\Framework\RequestHandler\RequestHandler {#340}
/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 {#283}
/srv/disk8/2197592/www/quoipro.com/system/src/Grav/Common/Processors/TasksProcessor.php
$response = $handler->handle($request);
}
$this->stopTimer();
return $response;
} catch (NotFoundException $e) {
// Task not found: Let it pass through.
}
}
if ($task) {
$this->container->fireEvent('onTask.' . $task);
} elseif ($action) {
$this->container->fireEvent('onAction.' . $action);
}
}
$this->stopTimer();
return $handler->handle($request);
}
}
Arguments
Nyholm\Psr7\ServerRequest {#283}
/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 {#283}
Grav\Framework\RequestHandler\RequestHandler {#331}
/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 {#283}
/srv/disk8/2197592/www/quoipro.com/system/src/Grav/Common/Processors/RequestProcessor.php
$uri = $request->getUri();
$ext = mb_strtolower(Utils::pathinfo($uri->getPath(), PATHINFO_EXTENSION));
$request = $request
->withAttribute('grav', $this->container)
->withAttribute('time', $_SERVER['REQUEST_TIME_FLOAT'] ?? GRAV_REQUEST_TIME)
->withAttribute('route', Uri::getCurrentRoute()->withExtension($ext))
->withAttribute('referrer', $this->container['uri']->referrer());
$event = new RequestHandlerEvent(['request' => $request, 'handler' => $handler]);
/** @var RequestHandlerEvent $event */
$event = $this->container->fireEvent('onRequestHandlerInit', $event);
$response = $event->getResponse();
$this->stopTimer();
if ($response) {
return $response;
}
return $handler->handle($request);
}
}
Arguments
Nyholm\Psr7\ServerRequest {#283}
/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 {#283}
Grav\Framework\RequestHandler\RequestHandler {#278}
/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 {#63}
/srv/disk8/2197592/www/quoipro.com/system/src/Grav/Common/Processors/ThemesProcessor.php
*/
class ThemesProcessor extends ProcessorBase
{
/** @var string */
public $id = 'themes';
/** @var string */
public $title = 'Themes';
/**
* @param ServerRequestInterface $request
* @param RequestHandlerInterface $handler
* @return ResponseInterface
*/
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
{
$this->startTimer();
$this->container['themes']->init();
$this->stopTimer();
return $handler->handle($request);
}
}
Arguments
Nyholm\Psr7\ServerRequest {#63}
/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 {#63}
Grav\Framework\RequestHandler\RequestHandler {#263}
/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 {#63}
/srv/disk8/2197592/www/quoipro.com/system/src/Grav/Common/Processors/PluginsProcessor.php
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
Nyholm\Psr7\ServerRequest {#63}
/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 {#63}
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 {#63}
/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 {#63}
/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 {#63}
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 {#63}
/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 {#63}
/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 {#63}
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 {#63}
/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 {#63}
/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;
}