26 lines
777 B
PHP
26 lines
777 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use App\Console\OrmCommand;
|
|
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);
|
|
$commands->add(OrmCommand::class);
|
|
$this->addCommands($container, $commands);
|
|
}
|
|
} |