Development

Changeset 11375

You must first sign up to be able to contribute.

Changeset 11375

Show
Ignore:
Timestamp:
09/08/08 18:53:09 (6 years ago)
Author:
hartym
Message:

[1.1] fix clear-cache bug in which cli environment is hardcoded

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/task/cache/sfCacheClearTask.class.php

    r11280 r11375  
    44 * This file is part of the symfony package. 
    55 * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com> 
    6  *  
     6 * 
    77 * For the full copyright and license information, please view the LICENSE 
    88 * file that was distributed with this source code. 
     
    8686      $this->checkAppExists($app); 
    8787 
    88       $appConfiguration = ProjectConfiguration::getApplicationConfiguration($app, 'cli', true); 
    89  
    9088      if (!is_dir(sfConfig::get('sf_cache_dir').'/'.$app)) 
    9189      { 
     
    106104        $this->lock($app, $env); 
    107105 
     106        $appConfiguration = ProjectConfiguration::getApplicationConfiguration($app, $env, true); 
    108107        $event = $appConfiguration->getEventDispatcher()->notifyUntil(new sfEvent($this, 'task.cache.clear', array('app' => $appConfiguration, 'env' => $env, 'type' => $options['type']))); 
    109108        if (!$event->isProcessed())