<?php
namespace Home\Module\Call;
use GI\Application\Module\CallContainer\Web as Base;
use Home\Module\Call\Route\Tree\Root;
use Home\Component\Layout\Gate\Gate as LayoutGate;
class Container extends Base implements ContainerInterface
{
/**
* @extract
* @return BaseCallInterface
* @throws \Exception
*/
protected function createLayout()
{
$routes = $this->createRoutesTree();
return new BaseCall(
$routes->getRootWithGET(),
function(BaseCallInterface $call)
{
(new LayoutGate($call))->show();
return true;
}
);
}
/**
* @return Root
*/
protected function createRoutesTree()
{
return new Root();
}
}