uawdijnntqw1x1x1
IP : 216.73.216.127
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
/
justinrainbow
/
..
/
craftcms
/
cms
/
lib
/
yii2
/
Yii.php
/
/
<?php /** * @link https://craftcms.com/ * @copyright Copyright (c) Pixel & Tonic, Inc. * @license https://craftcms.github.io/license/ */ use craft\helpers\FileHelper; use yii\BaseYii; use yii\di\Container; /** * @inheritdoc */ class Yii extends BaseYii { /** * @var string[] Record of all registered aliases and the paths they map to. */ private static $_aliasPaths = []; /** * @var bool Whether [[$aliasPaths]] has changed since it was last sorted. */ private static $_aliasesChanged = false; /** * @inheritdoc */ public static function setAlias($alias, $path) { if (strncmp($alias, '@', 1)) { $alias = '@' . $alias; } parent::setAlias($alias, $path); self::$_aliasPaths[$alias] = FileHelper::normalizePath($path); self::$_aliasesChanged = true; } /** * Swaps the beginning of a path with the most specific alias we can find, if any. * * @param string $path * @return string * @since 3.0.3 */ public static function alias(string $path): string { // Do the alias paths need to be sorted? if (self::$_aliasesChanged) { $lengths = []; foreach (self::$_aliasPaths as $aliasPath) { $lengths[] = strlen($aliasPath); } array_multisort($lengths, SORT_DESC, SORT_NUMERIC, self::$_aliasPaths); self::$_aliasesChanged = false; } $path = FileHelper::normalizePath($path); foreach (self::$_aliasPaths as $alias => $aliasPath) { if (strpos($path . DIRECTORY_SEPARATOR, $aliasPath . DIRECTORY_SEPARATOR) === 0) { return $alias . str_replace('\\', '/', substr($path, strlen($aliasPath))); } } return $path; } } Yii::$container = new Container();
/srv/users/craft4/apps/craft4-newsite-space/vendor/justinrainbow/../craftcms/cms/lib/yii2/Yii.php