Skip to content

Commit

Permalink
Merge pull request #2 from tanUIT/master
Browse files Browse the repository at this point in the history
Removing require_once and include_once in Engine.php
  • Loading branch information
khanhicetea authored Apr 19, 2017
2 parents 70cbd7f + d0febef commit 5f52552
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Sifoni/Engine.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ private function loadHooks()
{
$file_path = $this->getAppPath('config').DIRECTORY_SEPARATOR.'hook.php';
if (is_readable($file_path)) {
include_once $file_path;
require $file_path;
}
}

Expand Down Expand Up @@ -288,7 +288,7 @@ private function loadRouting()

$routing_file_path = $this->getAppPath('config').DIRECTORY_SEPARATOR.'routing.php';
if (is_readable($routing_file_path)) {
$maps = require_once $routing_file_path;
$maps = require $routing_file_path;
}

if ($maps) {
Expand Down

0 comments on commit 5f52552

Please sign in to comment.