99use EE \Model \Site ;
1010use Symfony \Component \Filesystem \Filesystem ;
1111use function EE \Site \Utils \auto_site_name ;
12- use function EE \Utils \docker_compose_with_custom ;
1312use function EE \Utils \download ;
1413use function EE \Utils \extract_zip ;
1514use function EE \Utils \random_password ;
@@ -115,7 +114,7 @@ public function enable( $args, $assoc_args ) {
115114
116115 chdir ( $ this ->site_data ->site_fs_path );
117116
118- $ launch = EE ::launch ( docker_compose_with_custom () . ' config --services ' );
117+ $ launch = EE ::launch ( \ EE_DOCKER :: docker_compose_with_custom () . ' config --services ' );
119118 $ services = explode ( PHP_EOL , trim ( $ launch ->stdout ) );
120119 $ min_req_services = [ 'nginx ' , 'php ' ];
121120
@@ -136,7 +135,7 @@ public function enable( $args, $assoc_args ) {
136135 $ docker_compose_admin = EE \Utils \mustache_render ( ADMIN_TEMPLATE_ROOT . '/docker-compose-admin.mustache ' , $ docker_compose_data );
137136 $ this ->fs ->dumpFile ( $ this ->site_data ->site_fs_path . '/docker-compose-admin.yml ' , $ docker_compose_admin );
138137
139- if ( EE ::exec ( docker_compose_with_custom ( ['docker-compose-admin.yml ' ] ) . ' up -d nginx ' ) ) {
138+ if ( EE ::exec ( \ EE_DOCKER :: docker_compose_with_custom ( ['docker-compose-admin.yml ' ] ) . ' up -d nginx ' ) ) {
140139 EE ::success ( sprintf ( 'admin-tools enabled for %s site. ' , $ this ->site_data ->site_url ) );
141140 $ this ->site_data ->admin_tools = 1 ;
142141 $ this ->site_data ->save ();
0 commit comments