From 497c2c3ca66799dd475d1dfea316b126741080d5 Mon Sep 17 00:00:00 2001 From: Hassan Khan Date: Tue, 4 Feb 2014 22:26:26 +0000 Subject: [PATCH] Small updates, nothing massive --- TODO.md | 10 +--------- library/Zepto/Zepto.php | 6 +++--- tests/Zepto/ZeptoTest.php | 12 ++++++++++++ 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/TODO.md b/TODO.md index b3d6609..b16b32f 100644 --- a/TODO.md +++ b/TODO.md @@ -1,9 +1,6 @@ To-Do ==== -## Router -- Also, should request and response be protected or public? - ## Frontend - Rewrite CSS to LESS - Probably try and use Bootstrap @@ -17,25 +14,20 @@ To-Do ## Application - [Add support for environments ``[production|dev]``](https://github.com/hassankhan/Zepto/issues/4) -- Abstract-ify Whoops - Move ``index.php`` to ``public`` folder - Check for PHP version and use newer functions where available ## Router - Add functionality to allow for other HTTP verbs +- Also, should request and response be protected or public? ## Templating Engine - Add Twig extensions -## Plugins -- Add hooks to important parts of application by adding ``run_hooks()`` calls - - [``after_config_load`` isn't working at the minute, need to decouple it some](https://github.com/hassankhan/Zepto/issues/5) - ## [Tests](https://github.com/hassankhan/Zepto/issues?milestone=1&state=open) - Write MORE unit tests - Add @dataProvider to ConsoleTest - Maybe get some benchmarks up? -- [Add support for HHVM](https://github.com/hassankhan/Zepto/issues/3) ## ``zep`` - Make init wizard diff --git a/library/Zepto/Zepto.php b/library/Zepto/Zepto.php index 41f5e99..04d3cc9 100644 --- a/library/Zepto/Zepto.php +++ b/library/Zepto/Zepto.php @@ -72,7 +72,7 @@ public function __construct(array $settings = array()) $this->container = new Pimple(); // Get local reference to container - $container = $this->container; + $container = $this->container; $container['request'] = $container->share( function() { @@ -319,8 +319,8 @@ protected function create_nav_links() protected function generate_nav_html() { - $container = $this->container; - $settings = $container['settings']; + $container = $this->container; + $settings = $container['settings']; $content_loader = $container['content_loader']; // Opening ``