Commit a9546a99 by Qiang Xue

do not throw exception for Application::getCache() when cache is not installed.

parent b1baa420
......@@ -437,7 +437,7 @@ abstract class Application extends Module
*/
public function getCache()
{
return $this->get('cache');
return $this->get('cache', false);
}
/**
......@@ -497,10 +497,11 @@ abstract class Application extends Module
/**
* Returns the auth manager for this application.
* @return \yii\rbac\Manager the auth manager for this application.
* Null is returned if auth manager is not configured.
*/
public function getAuthManager()
{
return $this->get('authManager');
return $this->get('authManager', false);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment