Qiang Xue
12 years ago
11 changed files with 27 additions and 56 deletions
@ -1,32 +0,0 @@
|
||||
<?php |
||||
/** |
||||
* ApplicationComponent class file. |
||||
* |
||||
* @link http://www.yiiframework.com/ |
||||
* @copyright Copyright © 2008 Yii Software LLC |
||||
* @license http://www.yiiframework.com/license/ |
||||
*/ |
||||
|
||||
namespace yii\base; |
||||
|
||||
/** |
||||
* ApplicationComponent is the base class for application component classes. |
||||
* |
||||
* @author Qiang Xue <qiang.xue@gmail.com> |
||||
* @since 2.0 |
||||
*/ |
||||
class ApplicationComponent extends Component |
||||
{ |
||||
/** |
||||
* @var string unique ID of this application component |
||||
*/ |
||||
public $id; |
||||
|
||||
public function init() |
||||
{ |
||||
parent::init(); |
||||
if ($this->id === null) { |
||||
$this->id = get_class($this); |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue