|
Revision 11286, 1.7 kB
(checked in by fabien, 5 years ago)
|
[1.2] removed log messages that do not give valuable information
|
- Property svn:mime-type set to
text/x-php
- Property svn:eol-style set to
native
- Property svn:keywords set to
Id Rev Date
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
class sfFrontWebController extends sfWebController |
|---|
| 24 |
{ |
|---|
| 25 |
|
|---|
| 26 |
* Dispatches a request. |
|---|
| 27 |
* |
|---|
| 28 |
* This will determine which module and action to use by request parameters specified by the user. |
|---|
| 29 |
*/ |
|---|
| 30 |
public function dispatch() |
|---|
| 31 |
{ |
|---|
| 32 |
try |
|---|
| 33 |
{ |
|---|
| 34 |
|
|---|
| 35 |
sfFilter::$filterCalled = array(); |
|---|
| 36 |
|
|---|
| 37 |
|
|---|
| 38 |
$request = $this->context->getRequest(); |
|---|
| 39 |
$moduleName = $request->getParameter('module'); |
|---|
| 40 |
$actionName = $request->getParameter('action'); |
|---|
| 41 |
|
|---|
| 42 |
if (empty($moduleName) || empty($actionName)) |
|---|
| 43 |
{ |
|---|
| 44 |
throw new sfError404Exception(sprintf('Empty module and/or action after parsing the URL "%s" (%s/%s).', $request->getPathInfo(), $moduleName, $actionName)); |
|---|
| 45 |
} |
|---|
| 46 |
|
|---|
| 47 |
|
|---|
| 48 |
$this->forward($moduleName, $actionName); |
|---|
| 49 |
} |
|---|
| 50 |
catch (sfException $e) |
|---|
| 51 |
{ |
|---|
| 52 |
$e->printStackTrace(); |
|---|
| 53 |
} |
|---|
| 54 |
catch (Exception $e) |
|---|
| 55 |
{ |
|---|
| 56 |
sfException::createFromException($e)->printStackTrace(); |
|---|
| 57 |
} |
|---|
| 58 |
} |
|---|
| 59 |
} |
|---|
| 60 |
|
|---|