getServiceContainer() public method

Retrieves the service container.
public getServiceContainer ( ) : sfServiceContainer
return sfServiceContainer The current sfServiceContainer implementation instance.
Example #1
0
 public function __construct(sfContext $context, sfEventDispatcher $dispatcher)
 {
     $this->mailer = $context->getMailer();
     $this->dispatcher = $dispatcher;
     $this->serviceContainer = $context->getServiceContainer();
     $this->initialize();
 }