mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-23 13:23:00 +09:00
remove unused private _getIdentity()
This commit is contained in:
1 parent
7e4df76c74
commit
286d085d35
1 file changed
-18
@@ -114,22 +114,4 @@ final class Api_Handler implements InjectionAwareInterface
|
||||
if($this->_enable_cache) $this->_cache[$cache_key] = $res;
|
||||
return $res;
|
||||
}
|
||||
|
||||
private function _getIdentity()
|
||||
{
|
||||
if ('guest' == $this->type){
|
||||
return new Model_Guest();
|
||||
}
|
||||
if ('system' == $this->type){
|
||||
return $this->di['mod_service']('staff')->getCronAdmin();
|
||||
}
|
||||
if ('admin' == $this->type){
|
||||
return $this->di['loggedin_admin'];
|
||||
}
|
||||
if ('client' == $this->type){
|
||||
return $this->di['loggedin_client'];
|
||||
}
|
||||
|
||||
throw new Exception('Unrecognized Handler type: '.$this->type);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user