Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

Commit

Permalink
Cleaned up some stuff in the constructor of Zepto\Zepto
Browse files Browse the repository at this point in the history
  • Loading branch information
hassankhan committed Jan 28, 2014
1 parent 2096f18 commit 146d3cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions library/Zepto/Zepto.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,25 +83,25 @@ function ($container) {
$whoops = $this->_configure_error_handler();

$container['router'] = $container->share(
function ($container) {
function () {
return new Router;
}
);

$container['plugin_loader'] = $container->share(
function ($container) {
function () {
return new FileLoader\PluginLoader();
}
);

$container['file_loader'] = $container->share(
function ($container) {
function () {
return new FileLoader\MarkdownLoader(new \Michelf\MarkdownExtra);
}
);

$container['twig'] = $container->share(
function ($container) {
function () {
return new \Twig_Environment(
new \Twig_Loader_Filesystem(ROOT_DIR . 'templates')
);
Expand Down

0 comments on commit 146d3cd

Please sign in to comment.