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(); } }
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')); }