|
15 | 15 | use \Symfony\Component\Filesystem\Filesystem; |
16 | 16 | use \Composer\Console\Application; |
17 | 17 | use \Symfony\Component\Console\Input\ArrayInput; |
| 18 | +use function EE\Site\Utils\auto_site_name; |
18 | 19 |
|
19 | 20 | class Admin_Tools_Command extends EE_Command { |
20 | 21 |
|
@@ -100,7 +101,7 @@ public function install() { |
100 | 101 | public function up( $args, $assoc_args ) { |
101 | 102 |
|
102 | 103 | EE\Utils\delem_log( 'admin-tools ' . __FUNCTION__ . ' start' ); |
103 | | - $args = EE\SiteUtils\auto_site_name( $args, $this->command, __FUNCTION__ ); |
| 104 | + $args = auto_site_name( $args, $this->command, __FUNCTION__ ); |
104 | 105 | $force = EE\Utils\get_flag_value( $assoc_args, 'force' ); |
105 | 106 | $this->site_data = Site::find( EE\Utils\remove_trailing_slash( $args[0] ) ); |
106 | 107 | if ( ! $this->site_data || ! $this->site_data->site_enabled ) { |
@@ -154,7 +155,7 @@ public function up( $args, $assoc_args ) { |
154 | 155 | public function down( $args, $assoc_args ) { |
155 | 156 |
|
156 | 157 | EE\Utils\delem_log( 'admin-tools ' . __FUNCTION__ . ' start' ); |
157 | | - $args = EE\SiteUtils\auto_site_name( $args, $this->command, __FUNCTION__ ); |
| 158 | + $args = auto_site_name( $args, $this->command, __FUNCTION__ ); |
158 | 159 | $force = EE\Utils\get_flag_value( $assoc_args, 'force' ); |
159 | 160 | $this->site_data = Site::find( EE\Utils\remove_trailing_slash( $args[0] ) ); |
160 | 161 | if ( ! $this->site_data || ! $this->site_data->site_enabled ) { |
|
0 commit comments