public function __construct(array $config = [])
{
$this->config = config(['title' => 'Sphido CMS', 'cache' => false, 'content' => realpath(getcwd() . '/pages/'), 'meta' => ['template' => getcwd() . '/layout.latte']], $config, is_file(getcwd() . '/config.php') ? include_once getcwd() . '/config.php' : []);
\route\map([404, 500], new MissingPage());
// add error handler
\route\map(filter(Sphido::class, $this));
// pages handler
}