Hi folks.
I'm new to Symphony components. Have read about dependency injection
component, and have some questions.
In example
http://components.symfony-project.org/dependency-injection/trunk/book/03-Service-Container
(class Container extends sfServiceContainer) get*Service() methods are
protected, probably because sfServiceContainer need to check if
service is already created and get it from $this->services[$id] if
yes. Why then getMailerService() is trying to get it from self::
$shared['mailer']?
Services are magically hidden in the container so I get no code
completion by my IDE. Any idea how to make it work, or that is not
possible?
I'm looking for the right way to go implementing my service container
for my services in zf based project which will be based on
sfServiceContainer. Any tips, examples, github links are welcome.
Thanks in advance.