yiisoft / yii2

Yii 2: The Fast, Secure and Professional PHP Framework
http://www.yiiframework.com
BSD 3-Clause "New" or "Revised" License
14.24k stars 6.9k forks source link

Use of className() in framework/rest/Controller.php #19573

Closed monta990 closed 2 years ago

monta990 commented 2 years ago

https://github.com/yiisoft/yii2/blob/60dec4008bff11e8bcdde702d033f4fbf3663965/framework/rest/Controller.php#L52

https://github.com/yiisoft/yii2/blob/60dec4008bff11e8bcdde702d033f4fbf3663965/framework/rest/Controller.php#L59

https://github.com/yiisoft/yii2/blob/60dec4008bff11e8bcdde702d033f4fbf3663965/framework/rest/Controller.php#L63

https://github.com/yiisoft/yii2/blob/60dec4008bff11e8bcdde702d033f4fbf3663965/framework/rest/Controller.php#L66

bizley commented 2 years ago

What kind of spam is this? We are using className() because Yii 2 can be run on PHP 5.4 where is no ::class.

samdark commented 2 years ago

@bizley it's not a spam :) But yes, it won't be changed.