getServiceContainer() public méthode

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