MicroFrameWork/kernel/services/ConsoleService.php

22 lines
414 B
PHP

<?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");
}
public function runCommand(string $command): void
{
exec($command);
}
}