Hi,

I found just one documentation about the Zend DIC but I could not find how
to inform which concrete class should it create based on an interface

Ex.

class Foo
{
     public function __construct(BarInterface $bar)
     {
     }
}

class Bar implements BarInterface
{
     public function __construct($someArg)
     {
     }
}

I want to create a new instance of Foo using the DIC.   How can I set this?

$foo = $dic->get('Foo', ?)

Thanks,

Reply via email to