From f46705cd8497158403d6570446b73cab2a1f4611 Mon Sep 17 00:00:00 2001 From: Roman Date: Mon, 21 Feb 2022 13:12:44 +0100 Subject: [PATCH] cleanup --- cli.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cli.php b/cli.php index 2a16074..064d2a4 100644 --- a/cli.php +++ b/cli.php @@ -42,12 +42,8 @@ function getDatabaseConfig(): ConnectionData { $config = new Configuration(); $database = $config->getDatabase(); if ($database !== null && $database->getProperty("isDocker", false) && !is_file("/.dockerenv")) { - $command = array_merge(["docker", "exec", "-it", "php", "php"], /*array_map(function ($arg) { return escapeshellarg($arg); }, */$argv); - var_dump(implode(" ", $command)); + $command = array_merge(["docker", "exec", "-it", "php", "php"], $argv); $proc = proc_open($command, [1 => STDOUT, 2 => STDERR], $pipes, "/application"); - sleep(1); - /*var_dump(stream_get_contents($pipes[1])); - var_dump(stream_get_contents($pipes[2]));*/ exit(proc_close($proc)); }