* http://opensource.org/licenses/MIT * http://www.gnu.org/licenses/gpl-2.0.html * * Gantry Framework code that extends GPL code is considered GNU/GPLv2 and later */ namespace Gantry\Component\Theme; use Gantry\Component\File\CompiledYamlFile; use Gantry\Component\Filesystem\Streams; use Gantry\Framework\Gantry; use RocketTheme\Toolbox\ArrayTraits\Export; use RocketTheme\Toolbox\ArrayTraits\NestedArrayAccessWithGetters; use RocketTheme\Toolbox\ResourceLocator\UniformResourceLocator; /** * Class ThemeDetails * @package Gantry\Component\Theme */ class ThemeDetails implements \ArrayAccess { use NestedArrayAccessWithGetters, Export; protected $items; protected $parent; /** * Create new theme details. * * @param string $theme */ public function __construct($theme) { $gantry = Gantry::instance(); /** @var UniformResourceLocator $locator */ $locator = $gantry['locator']; $filename = $locator->findResource("gantry-themes://{$theme}/gantry/theme.yaml"); if (!$filename) {
/** * Special case to deal with Fatal errors and the like. */ public function handleShutdown() { // If we reached this step, we are in shutdown handler. // An exception thrown in a shutdown handler will not be propagated // to the exception handler. Pass that information along. $this->canThrowExceptions = false; $error = $this->system->getLastError(); if ($error && Misc::isLevelFatal($error['type'])) { // If there was a fatal error, // it was not handled in handleError yet. $this->allowQuit = false; $this->handleError( $error['type'], $error['message'], $error['file'], $error['line'] ); } } /** * In certain scenarios, like in shutdown handler, we can not throw exceptions * @var bool */ private $canThrowExceptions = true; /** * Echo something to the browser * @param string $output * @return $this */ private function writeToOutputNow($output) { if ($this->sendHttpCode() && \Whoops\Util\Misc::canSendHeaders()) { $this->system->setHttpResponseCode( $this->sendHttpCode()
} // Propagate error to the next handler. if ($this->platformExceptionHandler) { call_user_func_array($this->platformExceptionHandler, [&$exception]); } } /** * Special case to deal with Fatal errors and the like. */ public function handleShutdown() { $handler = $this->whoopsShutdownHandler; $error = $this->getLastError(); // Ignore core warnings and errors. if ($error && !($error['type'] & (E_CORE_WARNING | E_CORE_ERROR))) { $handler(); } } }
Key | Value |
joomla | TzoyNDoiSm9vbWxhXFJlZ2lzdHJ5XFJlZ2lzdHJ5IjozOntzOjc6IgAqAGRhdGEiO086ODoic3RkQ2xhc3MiOjE6e3M6OToiX19kZWZhdWx0IjtPOjg6InN0ZENsYXNzIjo0OntzOjc6InNlc3Npb24iO086ODoic3RkQ2xhc3MiOjM6e3M6NzoiY291bnRlciI7aToxO3M6NToidGltZXIiO086ODoic3RkQ2xhc3MiOjM6e3M6NToic3RhcnQiO2k6MTcxMTcxMTQyMTtzOjQ6Imxhc3QiO2k6MTcxMTcxMTQyMTtzOjM6Im5vdyI7aToxNzExNzExNDIxO31zOjY6ImNsaWVudCI7Tzo4OiJzdGRDbGFzcyI6MTp7czo5OiJmb3J3YXJkZWQiO3M6MTI6IjIzLjIyLjIzLjE2MiI7fX1zOjg6InJlZ2lzdHJ5IjtPOjI0OiJKb29tbGFcUmVnaXN0cnlcUmVnaXN0cnkiOjM6e3M6NzoiACoAZGF0YSI7Tzo4OiJzdGRDbGFzcyI6MDp7fXM6MTQ6IgAqAGluaXRpYWxpemVkIjtiOjA7czo5OiJzZXBhcmF0b3IiO3M6MToiLiI7fXM6NDoidXNlciI7TzoyMDoiSm9vbWxhXENNU1xVc2VyXFVzZXIiOjE6e3M6MjoiaWQiO2k6MDt9czoyNToicGxnX3N5c3RlbV9sYW5ndWFnZWZpbHRlciI7Tzo4OiJzdGRDbGFzcyI6MTp7czo4OiJsYW5ndWFnZSI7czo1OiJlbi1HQiI7fX19czoxNDoiACoAaW5pdGlhbGl6ZWQiO2I6MDtzOjk6InNlcGFyYXRvciI7czoxOiIuIjt9 |
Key | Value |
PATH | /usr/local/bin:/usr/bin:/bin |
TEMP | /tmp |
TMP | /tmp |
TMPDIR | /tmp |
PWD | / |
HTTP_ACCEPT | */* |
CONTENT_LENGTH | 0 |
HTTP_HOST | www.englishpower.eu |
HTTP_USER_AGENT | claudebot |
HTTP_X_FORWARDED_FOR | 23.22.23.162 |
HTTP_X_FORWARDED_HOST | www.englishpower.eu |
HTTP_X_FORWARDED_PORT | 443 |
HTTP_X_FORWARDED_PROTO | https |
HTTP_X_FORWARDED_SERVER | www.englishpower.eu |
HTTP_X_REAL_IP | 23.22.23.162 |
HTTP_X_HTTPS | 1 |
REDIRECT_UNIQUE_ID | ZgakvaVgL-fUk6IP7rolRgAAAE8 |
REDIRECT_isproxyrequest | 1 |
REDIRECT_SCRIPT_URL | /en/ep-free-lessons/elementary/verbs/the-passive |
REDIRECT_SCRIPT_URI | https://www.englishpower.eu/en/ep-free-lessons/elementary/verbs/the-passive |
REDIRECT_HTTP_AUTHORIZATION | |
REDIRECT_HTTPS | on |
REDIRECT_STATUS | 200 |
UNIQUE_ID | ZgakvaVgL-fUk6IP7rolRgAAAE8 |
SCRIPT_URL | /en/ep-free-lessons/elementary/verbs/the-passive |
SCRIPT_URI | https://www.englishpower.eu/en/ep-free-lessons/elementary/verbs/the-passive |
HTTP_AUTHORIZATION | |
HTTPS | on |
SERVER_SIGNATURE | |
SERVER_SOFTWARE | Apache |
SERVER_NAME | www.englishpower.eu |
SERVER_ADDR | 149.255.62.60 |
SERVER_PORT | 443 |
REMOTE_ADDR | 23.22.23.162 |
DOCUMENT_ROOT | /home/englishpower/public_html |
REQUEST_SCHEME | https |
CONTEXT_PREFIX | |
CONTEXT_DOCUMENT_ROOT | /home/englishpower/public_html |
SERVER_ADMIN | webmaster@englishpower.eu |
SCRIPT_FILENAME | /home/englishpower/public_html/index.php |
REMOTE_PORT | 43232 |
REDIRECT_URL | /en/ep-free-lessons/elementary/verbs/the-passive |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_METHOD | GET |
QUERY_STRING | |
REQUEST_URI | /en/ep-free-lessons/elementary/verbs/the-passive |
SCRIPT_NAME | /index.php |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711711421.0498 |
REQUEST_TIME | 1711711421 |
argv | Array ( ) |
argc | 0 |