public function setUp() { $this->c = new \Hope\Di\Container(); $this->c->define(Hope\DiTest\BazInterface::class, Hope\DiTest\Baz::class); }
public function __construct(IContainer $container) { $this->_foo = $container->get(Foo::class); }
protected function resolveValue(IContainer $container, $name) { return $container->get($name); }