refactor $app->getApiClient(); to $api = $this->di['api_client'] or $this->di['is_client_logged'];

getApiClient is deprecated
This commit is contained in:
Vaidas Lungis committed 2015-03-18 14:31:44 +02:00
1 parent e4748de1c4
commit 998ffd04c7
9 files changed
+20 -16

No files matched your search

+2 -2
View File
@@ -57,8 +57,8 @@ class Client implements \Box\InjectionAwareInterface
public function get_protected(\Box_App $app)
{
// call $app->getApiClient() method to validate if client is logged in
$api = $app->getApiClient();
// call $this->di['is_client_logged'] method to validate if client is logged in
$this->di['is_client_logged'];
return $app->render('mod_example_index', array('show_protected'=>true));
}
}