Commit c6e4a25a by Taylor Otwell

Merge pull request #966 from racklin/develop

Fixed IoC::resolve forces singleton issue.
parents a73a6fb6 096f9c2b
......@@ -124,7 +124,7 @@ class IoC {
// If the requested type is registered as a singleton, we want to cache off
// the instance in memory so we can return it later without creating an
// entirely new instances of the object on each subsequent request.
if (isset(static::$registry[$type]['singleton']))
if (isset(static::$registry[$type]['singleton']) && static::$registry[$type]['singleton'] === true)
{
static::$singletons[$type] = $object;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment