<?php

namespace Licenzo\Framework\Foundation;

use Licenzo\Framework\Contracts\Kernel\Kernel;
use Licenzo\Framework\Http\Request;
use Licenzo\Framework\Http\Response;

class ConsoleKernel implements Kernel
{
    protected $app;

    public function __construct(Application $app)
    {
        $this->app = $app;
    }

    public function bootstrap(): void
    {
        // Console bootstrap — reserved for future CLI command registration
    }

    public function handle(Request $request): Response
    {
        // Console commands are dispatched via WP-CLI, not through HTTP
        return new Response('', 200);
    }

    public function terminate(Request $request, Response $response): void
    {
        // No-op for console kernel
    }

    public function getApplication(): Application
    {
        return $this->app;
    }
}
