Skip to content

Commit

Permalink
增加安装路径配置
Browse files Browse the repository at this point in the history
  • Loading branch information
yunwuxin committed Mar 28, 2016
1 parent 9e940db commit 000bf1d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/ThinkFramework.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ public function getInstallPath(PackageInterface $package)
throw new \InvalidArgumentException('Unable to install this library!');
}


if ($this->composer->getPackage()) {
$extra = $this->composer->getPackage()->getExtra();
if (!empty($extra['think-path'])) {
return $extra['think-path'];
}
}

return 'thinkphp';
}

Expand Down

0 comments on commit 000bf1d

Please sign in to comment.