Skip to content

Commit

Permalink
自定义组件支持别名配置 (swoft-cloud/swoft-component#181)
Browse files Browse the repository at this point in the history
* 增加自定义组件支持别名的单测

* 让组件地址支持别名
  • Loading branch information
limingxinleo authored and huangzhhui committed Aug 15, 2018
1 parent dabaa0a commit 923d680
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Bean/Resource/CustomComponentsRegister.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public function registerServerNamespace()
}

$this->componentNamespaces[] = $ns;
$componentDir = alias($componentDir);

foreach ($this->serverScan as $dir) {
$scanDir = $componentDir . DS . $dir;
Expand Down Expand Up @@ -48,6 +49,7 @@ public function registerWorkerNamespace()
}

$this->componentNamespaces[] = $ns;
$componentDir = alias($componentDir);

if (!is_dir($componentDir)) {
continue;
Expand Down

0 comments on commit 923d680

Please sign in to comment.