/datas/yulpa175025/sites/www.woodworkingandstuff.com/htdocs/system/src/Grav/Common/Grav.php
} else {
$this->redirect($route, $code);
}
}
/**
* Set response header.
*
* @param ResponseInterface|null $response
* @return void
*/
public function header(ResponseInterface $response = null): void
{
if (null === $response) {
/** @var PageInterface $page */
$page = $this['page'];
$response = new Response($page->httpResponseCode(), $page->httpHeaders(), '');
}
header("HTTP/{$response->getProtocolVersion()} {$response->getStatusCode()} {$response->getReasonPhrase()}");
foreach ($response->getHeaders() as $key => $values) {
// Skip internal Grav headers.
if (strpos($key, 'Grav-Internal-') === 0) {
continue;
}
foreach ($values as $i => $value) {
header($key . ': ' . $value, $i === 0);
}
}
}
/**
* Set the system locale based on the language and configuration
*
* @return void
*/
public function setLocale(): void
{
// Initialize Locale if set and configured.
if ($this['language']->enabled() && $this['config']->get('system.languages.override_locale')) {
Deprecated: Symfony\Component\VarDumper\Dumper\HtmlDumper::__construct(): Implicitly marking parameter $charset as nullable is deprecated, the explicit nullable type must be used instead in
/datas/yulpa175025/sites/www.woodworkingandstuff.com/htdocs/vendor/symfony/var-dumper/Dumper/HtmlDumper.php on line
80
Deprecated: Symfony\Component\VarDumper\Dumper\CliDumper::__construct(): Implicitly marking parameter $charset as nullable is deprecated, the explicit nullable type must be used instead in
/datas/yulpa175025/sites/www.woodworkingandstuff.com/htdocs/vendor/symfony/var-dumper/Dumper/CliDumper.php on line
67
Deprecated: Symfony\Component\VarDumper\Dumper\AbstractDumper::__construct(): Implicitly marking parameter $charset as nullable is deprecated, the explicit nullable type must be used instead in
/datas/yulpa175025/sites/www.woodworkingandstuff.com/htdocs/vendor/symfony/var-dumper/Dumper/AbstractDumper.php on line
45
Deprecated: Symfony\Component\VarDumper\Caster\Caster::castObject(): Implicitly marking parameter $debugClass as nullable is deprecated, the explicit nullable type must be used instead in
/datas/yulpa175025/sites/www.woodworkingandstuff.com/htdocs/vendor/symfony/var-dumper/Caster/Caster.php on line
48
Arguments
"Cannot modify header information - headers already sent by (output started at /datas/yulpa175025/sites/www.woodworkingandstuff.com/htdocs/system/src/Grav/Common/Grav.php:203)"
/datas/yulpa175025/sites/www.woodworkingandstuff.com/htdocs/system/src/Grav/Common/Grav.php
} else {
$this->redirect($route, $code);
}
}
/**
* Set response header.
*
* @param ResponseInterface|null $response
* @return void
*/
public function header(ResponseInterface $response = null): void
{
if (null === $response) {
/** @var PageInterface $page */
$page = $this['page'];
$response = new Response($page->httpResponseCode(), $page->httpHeaders(), '');
}
header("HTTP/{$response->getProtocolVersion()} {$response->getStatusCode()} {$response->getReasonPhrase()}");
foreach ($response->getHeaders() as $key => $values) {
// Skip internal Grav headers.
if (strpos($key, 'Grav-Internal-') === 0) {
continue;
}
foreach ($values as $i => $value) {
header($key . ': ' . $value, $i === 0);
}
}
}
/**
* Set the system locale based on the language and configuration
*
* @return void
*/
public function setLocale(): void
{
// Initialize Locale if set and configured.
if ($this['language']->enabled() && $this['config']->get('system.languages.override_locale')) {
Arguments
/datas/yulpa175025/sites/www.woodworkingandstuff.com/htdocs/system/src/Grav/Common/Grav.php
// 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 = '';
}
}
// Echo page content.
$this->header($response);
echo $body;
$this['debugger']->render();
// Response object can turn off all shutdown processing. This can be used for example to speed up AJAX responses.
// Note that using this feature will also turn off response compression.
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
{
Arguments
Grav\Framework\Psr7\Response {#88}
/datas/yulpa175025/sites/www.woodworkingandstuff.com/htdocs/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;
}