Closed isimmons closed 10 years ago
Based on the errors I changed to this and it seems to be working
use Aura\Di\Container;
use Aura\Di\Forge;
use Aura\Di\Config as DiConfig;
class Foo {
protected $container;
public function __construct()
{
$this->container = new Container(new Forge(new DiConfig));
}
}
Am able to set and get objects in the container now.
Just realized I'm on the develope-2 branch. Shouldn't the default branch at the main url be master? Anyway, I see the instructions there are different.
Develop-2 is the way to fly. Develop is v1, and master is the most-recent v1 release. (I am considering reminding master entirely in favor of tags and the develop-* branches only.)
seems you downloaded a different version and played with readme of different version. Checkout the downloaded readme , and let us know if things still persists.
@pmjones this is why I am thinking to keep a v2 or v2 flag in readme .
Thank you.
@isimmons Is this still an issue for you? If so we can continue working it; if not I'd like to close it.
Oh sorry, no issue. I was just confused. I used packagist and installed v1.1.2 thinking I should use a stable version since I'm new to Aura. Then when I clicked on the link to github from packagist I didn't realize it took me to the develop-2 branch. Guess I should have looked around more before posting the issue and I would have seen this. Will go ahead and close. Thanks
Results in error Argument 1 passed to Aura\Di\Factory::__construct() must be an instance of Aura\Di\ForgeInterface, none given
Can't just pass in a new Forge() because it has dependencies and then there is a second parameter to Factory.
What am I missing?