uawdijnntqw1x1x1
IP : 216.73.216.5
Hostname : toronto-dev2
Kernel : Linux toronto-dev2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
srv
/
users
/
craft4
/
apps
/
craft4-newsite-space
/
vendor
/
craftcms
/
..
/
.
/
craftcms
/
cms
/
src
/
debug
/
Module.php
/
/
<?php /** * @link https://craftcms.com/ * @copyright Copyright (c) Pixel & Tonic, Inc. * @license https://craftcms.github.io/license/ */ namespace craft\debug; use Craft; use craft\base\FsInterface; use craft\web\View; /** * The Yii Debug Module provides the debug toolbar and debugger * * @author Pixel & Tonic, Inc. <support@pixelandtonic.com> * @since 3.0.0 */ class Module extends \yii\debug\Module { /** * @var FsInterface|null The filesystem that debug cache files should be stored in. * @since 4.0.0 */ public ?FsInterface $fs = null; /** * @inheritdoc */ public function bootstrap($app): void { parent::bootstrap($app); $this->logTarget = $app->getLog()->targets['debug'] = new LogTarget($this); } /** * @inheritdoc */ public function renderToolbar($event): void { if (!$this->checkAccess() || Craft::$app->getRequest()->getIsAjax()) { return; } /** @var View $view */ $view = $event->sender; echo $this->getToolbarHtml(); echo '<style>' . $view->renderPhpFile($this->getBasePath() . '/assets/css/toolbar.css') . '</style>'; echo '<script>' . $view->renderPhpFile($this->getBasePath() . '/assets/js/toolbar.js') . '</script>'; } }
/srv/users/craft4/apps/craft4-newsite-space/vendor/craftcms/.././craftcms/cms/src/debug/Module.php