Skip to content

Commit

Permalink
Remove deprecated methods to BaseYii::class.
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed Sep 21, 2023
1 parent b0cc791 commit 1658284
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 30 deletions.
25 changes: 0 additions & 25 deletions framework/BaseYii.php
Original file line number Diff line number Diff line change
Expand Up @@ -408,18 +408,6 @@ public static function debug($message, $category = 'application')
}
}

/**
* Alias of [[debug()]].
* @param string|array $message the message to be logged. This can be a simple string or a more
* complex data structure, such as an array.
* @param string $category the category of the message.
* @deprecated since 2.0.14. Use [[debug()]] instead.
*/
public static function trace($message, $category = 'application')
{
static::debug($message, $category);
}

/**
* Logs an error message.
* An error message is typically logged when an unrecoverable error occurs
Expand Down Expand Up @@ -494,19 +482,6 @@ public static function endProfile($token, $category = 'application')
static::getLogger()->log($token, Logger::LEVEL_PROFILE_END, $category);
}

/**
* Returns an HTML hyperlink that can be displayed on your Web page showing "Powered by Yii Framework" information.
* @return string an HTML hyperlink that can be displayed on your Web page showing "Powered by Yii Framework" information
* @deprecated since 2.0.14, this method will be removed in 2.1.0.
*/
public static function powered()
{
return \Yii::t('yii', 'Powered by {yii}', [
'yii' => '<a href="https://www.yiiframework.com/" rel="external">' . \Yii::t('yii',
'Yii Framework') . '</a>',
]);
}

/**
* Translates a message to the specified language.
*
Expand Down
5 changes: 0 additions & 5 deletions tests/framework/BaseYiiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,6 @@ public function testGetVersion()
$this->assertTrue((bool) preg_match('~\d+\.\d+(?:\.\d+)?(?:-\w+)?~', \Yii::getVersion()));
}

public function testPowered()
{
$this->assertIsString(Yii::powered());
}

public function testCreateObjectArray()
{
Yii::$container = new Container();
Expand Down

0 comments on commit 1658284

Please sign in to comment.