mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-12-03 05:41:52 +09:00
Removed / cleaned up deprecated functions (#755)
* Add PHPStan extension for deprecation function usage * Removed some deprecated functions * And a few more * Also remove the deprecated API calls * Fix references to deprecated API calls * Oh, and this too
This commit is contained in:
1 parent
03a8927b82
commit
4d7b341e03
28 files changed
+165
-800
No files matched your search
@@ -38,9 +38,6 @@ class Client implements \Box\InjectionAwareInterface
|
||||
|
||||
public function register(\Box_App &$app)
|
||||
{
|
||||
// @deprecated
|
||||
$app->get('/client/me', 'get_profile', [], static::class);
|
||||
|
||||
$app->get('/client/reset-password-confirm/:hash', 'get_reset_password_confirm', ['hash' => '[a-z0-9]+'], static::class);
|
||||
$app->get('/client', 'get_client_index', [], static::class);
|
||||
$app->get('/client/logout', 'get_client_logout', [], static::class);
|
||||
@@ -48,22 +45,6 @@ class Client implements \Box\InjectionAwareInterface
|
||||
$app->get('/client/confirm-email/:hash', 'get_client_confirmation', ['page' => '[a-z0-9-]+'], static::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public function get_profile(\Box_App $app)
|
||||
{
|
||||
return $app->redirect('/client/profile');
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public function get_balance(\Box_App $app)
|
||||
{
|
||||
return $app->redirect('/client/balance');
|
||||
}
|
||||
|
||||
public function get_client_index(\Box_App $app)
|
||||
{
|
||||
$this->di['is_client_logged'];
|
||||
|
||||
Reference in new issue
Block a user