- 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');
?>
Example:
<?php
$instance = new Neuron(stringValue: 'Hello world', integerValue: 50,
boolValue: false);
echo $instance->stringValue; // "Hello world" will be printed.
?>
Also, is possible to send infinite params without names and his names
will be numeric similar as a non-asociatie array, but as Neuron object.
Example:
<?php
$str = 'Hello world';
$int = 50;
$con = false;
$instance = new Neuron($str, $int);
echo $instance->{0}; // "Hello world" will be printed.
?>
Is not necessary another conditionals. When __get is called
is only when the the property is not defined, so
only need return null in order to avoid the
PHP notice of undefined property.
- static::$querySelect['AndOr'] is REMOVED.
- where, and, or and search now use only the
static::$querySelect['where'] index.
- removed unnecesary brackets on buildQuery.