Suggestion to improve doc for sfServiceContainer

2 views
Skip to first unread message

umpirsky

unread,
Nov 20, 2010, 3:54:32 PM11/20/10
to Symfony Components
Hi.

On page http://components.symfony-project.org/dependency-injection/trunk/book/03-Service-Container
there is a snippet for class Container extends sfServiceContainer,
don't you think adding static protected $shared = array(); and

if (isset(self::$shared['mailer']))
{
return self::$shared['mailer'];
}

is unnecasarry, you can $this->setService() instead, or I am missing
something?

Here is how I solved it http://pastie.org/1313514
Reply all
Reply to author
Forward
0 new messages