Development

Changeset 8368

You must first sign up to be able to contribute.

Changeset 8368

Show
Ignore:
Timestamp:
04/09/08 01:38:43 (5 months ago)
Author:
dwhittle
Message:

1.1: fixed issues with exceptions thrown during context initialization

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/log/sfWebDebugLogger.class.php

    r7763 r8368  
    9090    // * if HTTP headers only 
    9191    $response = $event->getSubject(); 
    92     if ( 
     92    if (!$this->context->has('request') || !$this->context->has('response') || !$this->context->has('controller') || 
    9393      $this->context->getRequest()->isXmlHttpRequest() || 
    9494      strpos($response->getContentType(), 'html') === false || 
  • branches/1.1/lib/util/sfContext.class.php

    r7792 r8368  
    479479  { 
    480480    // shutdown all factories 
    481     $this->getUser()->shutdown(); 
    482     $this->getStorage()->shutdown(); 
    483     $this->getRouting()->shutdown(); 
     481    if($this->has('user')) 
     482    { 
     483      $this->getUser()->shutdown(); 
     484      $this->getStorage()->shutdown(); 
     485    } 
     486 
     487    if ($this->has('routing')) 
     488    { 
     489      $this->getRouting()->shutdown(); 
     490    } 
    484491 
    485492    if (sfConfig::get('sf_use_database'))