diff --git a/library/Zepto/Zepto.php b/library/Zepto/Zepto.php index 9e12ab3..b52fe9c 100644 --- a/library/Zepto/Zepto.php +++ b/library/Zepto/Zepto.php @@ -18,6 +18,9 @@ use Pimple; use Whoops; use Michelf\MarkdownExtra; +use Symfony\Component\HttpFoundation\Request; +use Symfony\Component\HttpFoundation\Response; + class Zepto { @@ -82,6 +85,22 @@ function ($container) { ); $whoops = $this->_configure_error_handler(); + $container['request'] = $container->share( + function() { + return Request::createFromGlobals(); + } + ); + + $container['response'] = $container->share( + function() { + return new Response( + 'Content', + Response::HTTP_OK, + array('content-type' => 'text/html') + ); + } + ); + $container['router'] = $container->share( function () { return new Router;