<?php
namespace Web\Core\Engine;
use IcebirdCMS\App\ApplicationInterface;
use IcebirdCMS\App\KernelLoader;
use Symfony\Component\HttpFoundation\Response;
class Web extends KernelLoader implements ApplicationInterface
{
private $page;
public function display(): Response
{
return $this->page->display();
}
public function initialize(): void
{
new Url($this->getKernel());
$this->page = new Page($this->getKernel());
$this->page->load();
}
}