Skip to content

Commit

Permalink
Merge pull request #29 from onysko/master
Browse files Browse the repository at this point in the history
Fixed e404 error
  • Loading branch information
vitalyiegorov committed Feb 9, 2016
2 parents 705d062 + ec15165 commit 7cb3c2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ public function composer($dependencyFilePath = null)
}

// Create local module and set it as active
$this->active = new CompressableLocalModule('local', $this->system_path, $this->map, $this);
$this->active = new VirtualModule($this->system_path, $this->map, $this, 'local');

// TODO: This should be changed to one single logic
// Require all local module model files
Expand All @@ -461,7 +461,7 @@ public function composer($dependencyFilePath = null)
require($controller);

// Create module connector instance
new CompressableLocalModule(basename($controller, '.php'), $this->system_path, $this->map, $this);
new VirtualModule($this->system_path, $this->map, $this, basename($controller, '.php'));
}

return $this;
Expand Down

0 comments on commit 7cb3c2a

Please sign in to comment.