MicroFrameWork/kernel/services/ConsoleService.php

22 lines
414 B
PHP
Raw Normal View History

2024-12-12 16:12:14 +03:00
<?php
namespace kernel\services;
class ConsoleService
{
public function runInitScript(string $package): void
{
exec("composer require $package");
exec("composer install");
}
public function runDeactivateScript(string $package): void
{
exec("composer remove $package");
}
2024-12-12 16:18:50 +03:00
public function runCommand(string $command): void
{
exec($command);
}
2024-12-12 16:12:14 +03:00
}