예제 #1
0
파일: Baz.php 프로젝트: hopehp/di
 public function __construct(IContainer $container)
 {
     $this->_foo = $container->get(Foo::class);
 }
예제 #2
0
파일: SimpleBuilder.php 프로젝트: hopehp/di
 protected function resolveValue(IContainer $container, $name)
 {
     return $container->get($name);
 }