Skip to content

Commit

Permalink
remove widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
lhs168 committed Jan 14, 2018
1 parent 8bb920b commit a32e0e5
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 1,635 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
.DS_Store
.vscode/

composer.lock
composer.phar
/vendor/
tests/data/
/src/tests/data/



10 changes: 9 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,15 @@
},
"autoload": {
"psr-4": {
"Fasim\\": "src/Fasim"
"Fasim\\Cache\\": "src/Fasim/Cache",
"Fasim\\Core\\": "src/Fasim/Core",
"Fasim\\Db\\": "src/Fasim/Db",
"Fasim\\Event\\": "src/Fasim/Event",
"Fasim\\Facades\\": "src/Fasim/Facades",
"Fasim\\Library\\": "src/Fasim/Library",
"Fasim\\Log\\": "src/Fasim/Log",
"Fasim\\Session\\": "src/Fasim/Session",
"Fasim\\Support\\": "src/Fasim/Cache"
},
"files": [
"src/Fasim/Support/helpers.php"
Expand Down
80 changes: 0 additions & 80 deletions composer.lock

This file was deleted.

5 changes: 4 additions & 1 deletion src/Fasim/Core/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ public function getMatchAction() {
public function init() {
//获取配置

$this->modules = Cfg::get('modules');
$this->modules = Cfg::get('modules', null);
if (!is_array($this->modules)) {
$this->modules = [];
}

$wd = $this->getWebsiteDirectory();
$requestUri = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '/';
Expand Down
Loading

0 comments on commit a32e0e5

Please sign in to comment.