/** * Given the real location if the script like '/local/dev/file.php' this method * actually creates URL to '/dev/file.php' */ public function __construct($url, array $params = null) { if (is_string($url) and preg_match("~^/local/dev(/?)(.*)\$~", $url, $matches)) { $url = '/dev/' . $matches[2]; } parent::__construct($url, $params); }