| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | class LocalComponent extends AbstractComponent |
||
| 29 | { |
||
| 30 | /** |
||
| 31 | * @var string |
||
| 32 | */ |
||
| 33 | public $path; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @inheritdoc |
||
| 37 | */ |
||
| 38 | public function init() |
||
| 39 | { |
||
| 40 | if ($this->path === null) { |
||
| 41 | throw new InvalidConfigException('The "path" property must be set.'); |
||
| 42 | } |
||
| 43 | |||
| 44 | $this->path = $this->normalizePath(Yii::getAlias($this->path)); |
||
|
|
|||
| 45 | |||
| 46 | parent::init(); |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @return LocalFilesystemAdapter |
||
| 51 | */ |
||
| 52 | protected function initAdapter() |
||
| 55 | } |
||
| 56 | } |
||
| 57 |