From f845a5ab8b67e1d0b11779f1754bcc3f2193d67b Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Sun, 28 Oct 2018 12:59:49 +0100 Subject: Added caching for templating and routing See #486 (Implement caching) --- src/Application.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/Application.php') diff --git a/src/Application.php b/src/Application.php index d12d3e31..02518423 100644 --- a/src/Application.php +++ b/src/Application.php @@ -108,8 +108,12 @@ class Application extends Container $this->instance('path.config', $appPath . DIRECTORY_SEPARATOR . 'config'); $this->instance('path.resources', $appPath . DIRECTORY_SEPARATOR . 'resources'); $this->instance('path.assets', $this->get('path.resources') . DIRECTORY_SEPARATOR . 'assets'); - $this->instance('path.views', $this->get('path.resources') . DIRECTORY_SEPARATOR . 'views'); $this->instance('path.lang', $this->get('path.resources') . DIRECTORY_SEPARATOR . 'lang'); + $this->instance('path.views', $this->get('path.resources') . DIRECTORY_SEPARATOR . 'views'); + $this->instance('path.storage', $appPath . DIRECTORY_SEPARATOR . 'storage'); + $this->instance('path.cache', $this->get('path.storage') . DIRECTORY_SEPARATOR . 'cache'); + $this->instance('path.cache.routes', $this->get('path.cache') . DIRECTORY_SEPARATOR . 'routes.cache.php'); + $this->instance('path.cache.views', $this->get('path.cache') . DIRECTORY_SEPARATOR . 'views'); } /** -- cgit v1.2.3-54-g00ecf