Skip to content

Commit 4398a4f

Browse files
committed
Merge branch 'kirtangajjar-add-auth-hook' into develop
2 parents ca75f9c + 4367aa8 commit 4398a4f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

admin-tools-command.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
}
1414

1515
$autoload = dirname( __FILE__ ) . '/vendor/autoload.php';
16+
1617
if ( file_exists( $autoload ) ) {
1718
require_once $autoload;
1819
}

src/Admin_Tools_Command.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
* @package ee-cli
1212
*/
1313

14+
use Composer\Console\Application;
1415
use EE\Model\Site;
15-
use \Symfony\Component\Filesystem\Filesystem;
16-
use \Composer\Console\Application;
17-
use \Symfony\Component\Console\Input\ArrayInput;
16+
use Symfony\Component\Console\Input\ArrayInput;
17+
use Symfony\Component\Filesystem\Filesystem;
1818
use function EE\Site\Utils\auto_site_name;
1919

2020
class Admin_Tools_Command extends EE_Command {
@@ -100,6 +100,8 @@ public function install() {
100100
*/
101101
public function up( $args, $assoc_args ) {
102102

103+
\EE\Auth\Utils\init_global_admin_tools_auth();
104+
103105
EE\Utils\delem_log( 'admin-tools ' . __FUNCTION__ . ' start' );
104106
$args = auto_site_name( $args, $this->command, __FUNCTION__ );
105107
$force = EE\Utils\get_flag_value( $assoc_args, 'force' );

0 commit comments

Comments
 (0)