Skip to content

Commit

Permalink
refactor: make BaseController abstract
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Feb 3, 2022
1 parent 6ac63a2 commit a825965
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion app/Controllers/BaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
* For security be sure to declare any new methods as protected or private.
*/
class BaseController extends Controller
abstract class BaseController extends Controller
{
/**
* Instance of the main Request object.
Expand Down
5 changes: 0 additions & 5 deletions system/Config/Routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@
* already loaded up and ready for us to use.
*/

// Prevent access to BaseController
$routes->add('BaseController(:any)', static function () {
throw PageNotFoundException::forPageNotFound();
});

// Prevent access to initController method
$routes->add('(:any)/initController', static function () {
throw PageNotFoundException::forPageNotFound();
Expand Down

0 comments on commit a825965

Please sign in to comment.