Groups
Groups
Sign in
Groups
Groups
Symfony Components (DISABLED)
Conversations
About
Send feedback
Help
Suggestion to improve doc for sfServiceContainer
2 views
Skip to first unread message
umpirsky
unread,
Nov 20, 2010, 3:54:32 PM
11/20/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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