Skip to content
Browse files

updating Shield class to make input a property and rename "template" …

…to "view"
  • Loading branch information...
1 parent 56b40a8 commit 6d43549a3ce714a498b2b1b1e46dfd8f6ede8e77 Chris Cornutt committed
Showing with 4 additions and 6 deletions.
  1. +4 −6 Shield/Shield.php
View
10 Shield/Shield.php
@@ -74,18 +74,16 @@ public function __construct()
private function init()
{
// init the config and read it in (if it exists)
- //$this->config = new Config();
- //$this->config->load();
Config::load();
$bs = new Bootstrap();
- $filter = new Filter();
- $this->template = new View($filter);
+ $this->filter = new Filter();
// set up the view and logger objects
$this->log = new Log();
- $this->input = new Input($filter);
+ $this->input = new Input($this->filter);
+ $this->view = new View($this->filter, $this->input);
}
/**
@@ -206,7 +204,7 @@ private function routeMatch($method,$uri,$matches=null)
$this->log->log('ROUTE MATCH ['.strtoupper($method).']: '.$uri);
$routeClosure = $this->routes[$method][$uri]($matches);
- $content = $this->template->render($routeClosure);
+ $content = $this->view->render($routeClosure);
echo $content;
}

0 comments on commit 6d43549

Please sign in to comment.
Something went wrong with that request. Please try again.