Skip to content

Commit

Permalink
AbstractController: Add config() helper to access config
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Dec 22, 2020
1 parent cb8c961 commit 4fc4fe8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/AbstractController.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,9 @@ public function render()
$body = $this->app->view->fetch($this->_template);
$this->app->response->write($body);
}

protected function config(string $key)
{
return $this->app->config($key);
}
}

0 comments on commit 4fc4fe8

Please sign in to comment.