Development

/branches/1.3/lib/controller/sfConsoleController.class.php

You must first sign up to be able to contribute.

root/branches/1.3/lib/controller/sfConsoleController.class.php

Revision 23810, 1.1 kB (checked in by Kris.Wallsmith, 4 years ago)

[1.3] set svn:eol-style property to native and svn:keywords property to Id on all .php files

  • Property svn:mime-type set to text/x-php
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1 <?php
2
3 /*
4  * This file is part of the symfony package.
5  * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
6  *
7  * For the full copyright and license information, please view the LICENSE
8  * file that was distributed with this source code.
9  */
10
11 /**
12  * @package    symfony
13  * @subpackage controller
14  * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
15  * @version    SVN: $Id$
16  */
17 class sfConsoleController extends sfController
18 {
19   /**
20    * Dispatches a request.
21    *
22    * @param string $moduleName A module name
23    * @param string $actionName An action name
24    * @param array  $parameters An associative array of parameters to be set
25    *
26    * @throws sfException
27    */
28   public function dispatch($moduleName, $actionName, $parameters = array())
29   {
30     try
31     {
32       // set parameters
33       $this->context->getRequest()->getParameterHolder()->add($parameters);
34
35       // make the first request
36       $this->forward($moduleName, $actionName);
37     }
38     catch (sfException $e)
39     {
40       $e->printStackTrace();
41     }
42     catch (Exception $e)
43     {
44       sfException::createFromException($e)->printStackTrace();
45     }
46   }
47 }
48
Note: See TracBrowser for help on using the browser.