Skip to content

Commit

Permalink
corrigindo alguns bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
dsisconeto committed Sep 16, 2017
1 parent d87a869 commit 44e8a9b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ if (ENVIRONMENT == 'development') {
require_once(__DIR__.'/vendor/autoload.php');

new \DSisconeto\Ciroute\Ciroute(
__DIR__."/$application_folder/config/routes.php",
__DIR__."/$application_folder/cache/",
__DIR__."/$application_folder/routes/"
__DIR__."/application/config/routes.php",
__DIR__."/application/cache/",
__DIR__."/application/routes/"
);
}
```
Expand Down
8 changes: 4 additions & 4 deletions src/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ class Route
'controller'=>'welcome',
'route'=>'default_controller',
'name'=>'index',
'method' =>'get',
'method' =>'ANY',
],
1=> [
'controller'=>'',
'route'=>'404_override',
'name'=>'404_override',
'method' =>'get',
'method' =>'ANY',
],
2=> [
'controller'=>false,
'route'=>'translate_uri_dashes',
'name'=>'',
'method' =>'get',
'method' =>'ANY',
],

];
Expand Down Expand Up @@ -123,7 +123,7 @@ private static function validateRoute($route)
throw new Exception("Rota reservada");
}

if (isset(self::$route[$route])) {
if (isset(self::$routes[$route])) {
throw new Exception("Rota Já registrada");
}
}
Expand Down

0 comments on commit 44e8a9b

Please sign in to comment.