Skip to content

Commit

Permalink
更新注释
Browse files Browse the repository at this point in the history
  • Loading branch information
ueaner committed Jul 9, 2017
1 parent 82239ab commit 3da9db5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Di/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ public function resolve(array $parameters = null, ContainerInterface $di = null)
switch ($type) {
case 'object':
if ($definition instanceof Closure) {
// 绑定匿名函数到当前的依赖注入容器对象实例上
// 以便匿名函数内可以可以通过
// 绑定匿名函数到当前的容器对象实例上
// 以便在匿名函数内通过 $this 访问容器中的其他服务
if (is_object($di)) {
$definition = Closure::bind($definition, $di);
}
Expand Down

0 comments on commit 3da9db5

Please sign in to comment.