cleaning up code.

This commit is contained in:
Taylor Otwell
2012-02-17 14:02:53 -06:00
parent ba3f62f79a
commit bf6313e50b
5 changed files with 20 additions and 31 deletions

View File

@@ -129,11 +129,7 @@ class IoC {
// If the resolver is registering as a singleton resolver, we will cache
// the instance of the object in the container so we can resolve it next
// time without having to instantiate a new instance of the object.
//
// This allows the developer to reuse objects that do not need to be
// instantiated each time they are needed, such as a SwiftMailer or
// Twig object that can be shared.
// time without having to instantiate a brand new instance.
if (isset(static::$registry[$name]['singleton']))
{
return static::$singletons[$name] = $object;