src/Web/Core/Engine/Web.php line 15

Open in your IDE?
  1. <?php
  2. namespace Web\Core\Engine;
  3. use IcebirdCMS\App\ApplicationInterface;
  4. use IcebirdCMS\App\KernelLoader;
  5. use Symfony\Component\HttpFoundation\Response;
  6. class Web extends KernelLoader implements ApplicationInterface
  7. {
  8.     private $page;
  9.     public function display(): Response
  10.     {
  11.         return $this->page->display();
  12.     }
  13.     public function initialize(): void
  14.     {
  15.         new Url($this->getKernel());
  16.         $this->page = new Page($this->getKernel());
  17.         $this->page->load();
  18.     }
  19. }