MicroFrameWork/kernel/services/ConsoleService.php

21 lines
383 B
PHP
Raw Permalink Normal View History

2024-12-12 16:12:14 +03:00
<?php
namespace kernel\services;
class ConsoleService
{
2024-12-12 16:51:16 +03:00
public function runComposerRequire(string $package): void
2024-12-12 16:12:14 +03:00
{
exec("composer require $package");
}
2024-12-12 16:51:16 +03:00
public function runComposerRemove(string $package): void
2024-12-12 16:12:14 +03:00
{
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
}