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