UnderCurrent/app/Kernel.php
2023-08-16 16:04:35 +02:00

24 lines
704 B
PHP

<?php
namespace App;
use App\Console\TestCommand;
use App\Controller\HelloWorldController;
use Ardent\Undercurrent\Console\CommandsConfig;
use Ardent\Undercurrent\Container\ContainerInterface;
use Ardent\Undercurrent\Http\RoutesConfig;
use Ardent\Undercurrent\Kernel\BaseKernel;
class Kernel extends BaseKernel
{
protected function dependencies(ContainerInterface $container): void
{
$routes = new RoutesConfig();
$routes->add(HelloWorldController::class);
$this->addControllers($container, $routes);
$commands = new CommandsConfig();
$commands->add(TestCommand::class);
$this->addCommands($container, $commands);
}
}