Skip to content

Commit

Permalink
Update Core.php
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy-j committed Mar 22, 2017
1 parent 5920e1c commit afc3b4f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions source/Spiral/Core/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,15 @@ public function __construct(
'config' => $directories['application'] . 'config/',
'views' => $directories['application'] . 'views/',
'runtime' => $directories['application'] . 'runtime/',
'cache' => $directories['application'] . 'runtime/cache/',
'resources' => $directories['application'] . 'resources/',
'locales' => $directories['application'] . 'resources/locales/'
];

//Default cache directory
if(!isset($this->directories['cache'])) {
$this->directories['cache'] = $this->directories['runtime'] . 'cache/';
}

//Every application needs timezone to be set, by default we are using UTC
date_default_timezone_set($this->timezone);

Expand Down Expand Up @@ -485,4 +489,4 @@ public static function init(

return $core;
}
}
}

0 comments on commit afc3b4f

Please sign in to comment.