Skip to content

Commit

Permalink
更新注释
Browse files Browse the repository at this point in the history
  • Loading branch information
ueaner committed Sep 11, 2017
1 parent d466702 commit 837f0f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Di/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function resolve(array $parameters = null, ContainerInterface $container
case 'object':
if ($definition instanceof Closure) {
// 绑定匿名函数到当前的容器对象实例上
// 以便在匿名函数内通过 $this 访问容器中的其他服务
// 便于在匿名函数内通过 $this 访问容器中的其他服务
if (is_object($container)) {
$definition = $definition->bindTo($container);
}
Expand Down

0 comments on commit 837f0f7

Please sign in to comment.