thephpleague / container

Small but powerful dependency injection container

Home Page:http://container.thephpleague.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extends causing an infinite loop

kraftner opened this issue · comments

It seems that #220 fixed #219 in the 3.x branch but the bug still exists in the 4.x branch.

if ($provider->provides($service)) {
$provider->register();
$this->registered[] = $provider->getIdentifier();
}