mirror of
https://github.com/restoreddev/phpapprentice.git
synced 2025-10-23 10:56:08 +02:00
23 lines
372 B
PHP
23 lines
372 B
PHP
<?php
|
|
|
|
namespace Apprentice;
|
|
|
|
use Apprentice\Command;
|
|
use Symfony\Component\Console\Application;
|
|
|
|
class App
|
|
{
|
|
/**
|
|
* Runs cli application
|
|
*
|
|
* @return void
|
|
*/
|
|
public function main(): void
|
|
{
|
|
$cli = new Application;
|
|
$cli->add(new Command\BuildCommand);
|
|
$cli->add(new Command\ServerCommand);
|
|
$cli->run();
|
|
}
|
|
}
|