sfContext::shutdown PHP Method

shutdown() public method

Execute the shutdown procedure.
public shutdown ( ) : void
return 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

Exemplo n.º 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'));
 }