mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-12-06 15:14:20 +09:00
refactor $app->getApiClient(); to $api = $this->di['api_client'] or $this->di['is_client_logged'];
getApiClient is deprecated
This commit is contained in:
1 parent
e4748de1c4
commit
998ffd04c7
9 files changed
+20
-16
No files matched your search
@@ -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));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user