Skip to content

Commit

Permalink
Merge pull request #57 from ArtyumX/patch-3
Browse files Browse the repository at this point in the history
added Class@Method call for custom 404
  • Loading branch information
bramus committed Dec 22, 2017
2 parents d085580 + 6bfd6ad commit e1a2b6d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Expand Up @@ -227,6 +227,11 @@ $router->set404(function() {
});
```

Or using `$router->set404('Class@Method');`
```php
$router->set404('\App\Controllers\Error@notFound');
```

The 404 will be executed when no route pattern was matched to the current URL.


Expand Down

0 comments on commit e1a2b6d

Please sign in to comment.