From 11420fbb2bf0a6d34d602b581e8e44dd7e97b073 Mon Sep 17 00:00:00 2001 From: stasbilay02 Date: Thu, 12 Dec 2024 16:18:50 +0300 Subject: [PATCH] console service add method run command --- kernel/services/ConsoleService.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/services/ConsoleService.php b/kernel/services/ConsoleService.php index fc76a3b..7cb8290 100644 --- a/kernel/services/ConsoleService.php +++ b/kernel/services/ConsoleService.php @@ -14,4 +14,9 @@ class ConsoleService { exec("composer remove $package"); } + + public function runCommand(string $command): void + { + exec($command); + } } \ No newline at end of file