|
|
@ -87,7 +87,6 @@ class Application extends Module |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public $layout = 'main'; |
|
|
|
public $layout = 'main'; |
|
|
|
|
|
|
|
|
|
|
|
private $_runtimePath; |
|
|
|
|
|
|
|
private $_ended = false; |
|
|
|
private $_ended = false; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -224,6 +223,8 @@ class Application extends Module |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private $_runtimePath; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Returns the directory that stores runtime files. |
|
|
|
* Returns the directory that stores runtime files. |
|
|
|
* @return string the directory that stores runtime files. Defaults to 'protected/runtime'. |
|
|
|
* @return string the directory that stores runtime files. Defaults to 'protected/runtime'. |
|
|
@ -251,6 +252,30 @@ class Application extends Module |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private $_vendorPath; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Returns the directory that stores vendor files. |
|
|
|
|
|
|
|
* @return string the directory that stores vendor files. Defaults to 'protected/vendor'. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public function getVendorPath() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if ($this->_vendorPath !== null) { |
|
|
|
|
|
|
|
$this->setVendorPath($this->getBasePath() . DIRECTORY_SEPARATOR . 'vendor'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return $this->_vendorPath; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Sets the directory that stores vendor files. |
|
|
|
|
|
|
|
* @param string $path the directory that stores vendor files. |
|
|
|
|
|
|
|
* @throws InvalidConfigException if the directory does not exist |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public function setVendorPath($path) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
$this->_vendorPath = FileHelper::ensureDirectory($path); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Returns the time zone used by this application. |
|
|
|
* Returns the time zone used by this application. |
|
|
|
* This is a simple wrapper of PHP function date_default_timezone_get(). |
|
|
|
* This is a simple wrapper of PHP function date_default_timezone_get(). |
|
|
|