<commit_before><?php

/*
 * This file is part of the symfony package.
 * (c) 2004-2006 <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

/**
 * @package    symfony
 * @subpackage controller
 * @author     <NAME> <<EMAIL>>
 * @version    SVN: $Id$
 */
class sfConsoleController extends sfController
{
  /**
   * Dispatch a request.
   *
   * @param string A module name.
   * @param string An action name.
   * @param array  An associative array of parameters to be set.
   *
   * @return void
   */
  public function dispatch ($moduleName, $actionName, $parameters = array())
  {
    try
    {
      // use plain text for errors
      sfException::setFormat('plain');

      // set parameters
      $this->getContext()->getRequest()->getParameterHolder()->add($parameters);

      // make the first request
      $this->forward($moduleName, $actionName);
    }
    catch (sfException $e)
    {
      $e->printStackTrace();
    }
    catch (Exception $e)
    {
      // wrap non symfony exceptions
      $sfException = new sfException();
      $sfException->printStackTrace($e);
    }
  }
}<commit_msg>fixed fatal Error when using sfConsoleController (closes #954)<commit_after><?php

/*
 * This file is part of the symfony package.
 * (c) 2004-2006 <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

/**
 * @package    symfony
 * @subpackage controller
 * @author     <NAME> <<EMAIL>>
 * @version    SVN: $Id$
 */
class sfConsoleController extends sfController
{
  /**
   * Dispatch a request.
   *
   * @param string A module name.
   * @param string An action name.
   * @param array  An associative array of parameters to be set.
   *
   * @return void
   */
  public function dispatch ($moduleName, $actionName, $parameters = array())
  {
    try
    {
      // set parameters
      $this->getContext()->getRequest()->getParameterHolder()->add($parameters);

      // make the first request
      $this->forward($moduleName, $actionName);
    }
    catch (sfException $e)
    {
      $e->printStackTrace();
    }
    catch (Exception $e)
    {
      // wrap non symfony exceptions
      $sfException = new sfException();
      $sfException->printStackTrace($e);
    }
  }
}
{'fraction_non_alphanumeric': 0.12773109243697478, 'fraction_numerical': 0.007983193277310924, 'mean_word_length': 2.708722741433022, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6977056', 'n_tokens_mistral': 701, 'n_tokens_neox': 681, 'n_words': 219}