sfContext::shutdown PHP 메소드

shutdown() 공개 메소드

Execute the shutdown procedure.
public shutdown ( ) : void
리턴 void
    public function shutdown()
    {
        $this->shutdownUserAndStorage();
        if ($this->has('routing')) {
            $this->getRouting()->shutdown();
        }
        if (sfConfig::get('sf_use_database')) {
            $this->getDatabaseManager()->shutdown();
        }
        if (sfConfig::get('sf_logging_enabled')) {
            $this->getLogger()->shutdown();
        }
    }

Usage Example

예제 #1
0
 public function shutdown()
 {
     $this->dispatcher->notify(new sfEvent($this, 'sf.context.end.before'));
     parent::shutdown();
     $this->dispatcher->notify(new sfEvent($this, 'sf.context.end.after'));
 }