uawdijnntqw1x1x1
IP : 216.73.216.107
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
/
cms
/
src
/
.
/
debug
/
DeprecatedPanel.php
/
/
<?php /** * @link https://craftcms.com/ * @copyright Copyright (c) Pixel & Tonic, Inc. * @license https://craftcms.github.io/license/ */ namespace craft\debug; use Craft; use yii\debug\Panel; use yii\helpers\ArrayHelper; use yii\web\NotFoundHttpException; /** * Debugger panel that collects and displays deprecation warnings. * * @author Pixel & Tonic, Inc. <support@pixelandtonic.com> * @since 3.0.0 */ class DeprecatedPanel extends Panel { /** * @inheritdoc */ public function getName(): string { return 'Deprecated'; } /** * @inheritdoc */ public function getSummary(): string { return Craft::$app->getView()->render('@app/views/debug/deprecated/summary', [ 'panel' => $this, ]); } /** * @inheritdoc * @throws NotFoundHttpException if a `trace` parameter is in the query string, but its value isn’t a valid deprecation warning’s ID */ public function getDetail(): string { $request = Craft::$app->getRequest(); if ($request->getQueryParam('clear')) { Craft::$app->getDeprecator()->deleteAllLogs(); } $logId = $request->getQueryParam('trace'); if ($logId) { $log = Craft::$app->getDeprecator()->getLogById($logId); if ($log === null) { throw new NotFoundHttpException('The requested deprecation warning could not be found.'); } return Craft::$app->getView()->render('@app/views/debug/deprecated/traces', [ 'panel' => $this, 'log' => $log, ]); } return Craft::$app->getView()->render('@app/views/debug/deprecated/detail', [ 'panel' => $this, ]); } /** * @inheritdoc */ public function save() { return ArrayHelper::toArray(Craft::$app->getDeprecator()->getRequestLogs()); } }
/srv/users/craft4/apps/craft4-newsite-space/././vendor/craftcms/cms/src/./debug/DeprecatedPanel.php