usermanager: initialize auth sytem later
This prevents header errors when inspecting the CLI component in plugin.php
This commit is contained in:
parent
ed46af861c
commit
4c1ed9da81
|
@ -15,11 +15,6 @@ use splitbrain\phpcli\TableFormatter;
|
|||
*/
|
||||
class cli_plugin_usermanager extends CLIPlugin
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
auth_setup();
|
||||
}
|
||||
|
||||
/** @inheritdoc */
|
||||
protected function setup(Options $options)
|
||||
|
@ -60,6 +55,8 @@ class cli_plugin_usermanager extends CLIPlugin
|
|||
/** @inheritdoc */
|
||||
protected function main(Options $options)
|
||||
{
|
||||
auth_setup();
|
||||
|
||||
/** @var AuthPlugin $auth */
|
||||
global $auth;
|
||||
|
||||
|
|
Loading…
Reference in New Issue