duckbrain/src/Libs
KJ 030e1079dc add mising types, patch method and a new way to set middleware
- Removed resumed way to set controllers and middlewares:
  Now, the method of routers and middlewares need to be
  callables.
- Add patch method in order to support PATCH http method.
- Add a way to get add more middlewares after. For Example:

  <?php
    use Libs\Router;

    Router::get('/some-route', 'somefunction')
      ->middleware('firstmiddleware');
    Router::get('/other-route', 'otherfunction');

    // Recover first router and add a middleware
    Router::get('/some-route')->middleware('secondmiddleware');
  ?>
2023-08-22 01:48:04 -04:00
..
Database.php Add sqlite support. 2022-08-04 05:30:22 -04:00
Middleware.php Improve return types. 2023-04-22 05:32:37 -04:00
Model.php Improve return types. 2023-04-22 05:32:37 -04:00
Neuron.php Allow construct Neuron with named arguments. 2023-06-04 14:47:58 -04:00
Router.php add mising types, patch method and a new way to set middleware 2023-08-22 01:48:04 -04:00
View.php Add missing docblocks and return types. 2023-03-25 12:26:42 -04:00