@ -128,7 +129,7 @@ class Application extends Module
*/
*/
public function __construct($id, $basePath, $config = array())
public function __construct($id, $basePath, $config = array())
{
{
\Yii::$application = $this;
Yii::$application = $this;
$this->id = $id;
$this->id = $id;
$this->setBasePath($basePath);
$this->setBasePath($basePath);
$this->registerDefaultAliases();
$this->registerDefaultAliases();
@ -213,7 +214,7 @@ class Application extends Module
{
{
$result = $this->createController($route);
$result = $this->createController($route);
if ($result === false) {
if ($result === false) {
throw new InvalidRequestException(\Yii::t('yii', 'Unable to resolve the request.'));
throw new InvalidRequestException(Yii::t('yii', 'Unable to resolve the request.'));
}
}
/** @var $controller Controller */
/** @var $controller Controller */
list($controller, $action) = $result;
list($controller, $action) = $result;
@ -243,7 +244,7 @@ class Application extends Module
*/
*/
public function setRuntimePath($path)
public function setRuntimePath($path)
{
{
$p = \Yii::getAlias($path);
$p = Yii::getAlias($path);
if ($p === false || !is_dir($p) || !is_writable($path)) {
if ($p === false || !is_dir($p) || !is_writable($path)) {
throw new InvalidCallException("Application runtime path \"$path\" is invalid. Please make sure it is a directory writable by the Web server process.");
throw new InvalidCallException("Application runtime path \"$path\" is invalid. Please make sure it is a directory writable by the Web server process.");
} else {
} else {
@ -402,9 +403,9 @@ class Application extends Module