Updated to short property syntax.
This commit is contained in:
parent
ac4a2deca6
commit
b3a3e837bc
1 changed files with 4 additions and 7 deletions
|
@ -7,13 +7,10 @@ use Index\Serialisation\Base62;
|
||||||
use Syokuhou\IConfig;
|
use Syokuhou\IConfig;
|
||||||
|
|
||||||
final class RedirectorRoutes implements IRouteHandler {
|
final class RedirectorRoutes implements IRouteHandler {
|
||||||
private IDbConnection $dbConn;
|
public function __construct(
|
||||||
private IConfig $urls;
|
private IDbConnection $dbConn,
|
||||||
|
private IConfig $urls
|
||||||
public function __construct(IDbConnection $dbConn, IConfig $urls) {
|
) {}
|
||||||
$this->dbConn = $dbConn;
|
|
||||||
$this->urls = $urls;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function registerRoutes(IRouter $router): void {
|
public function registerRoutes(IRouter $router): void {
|
||||||
HandlerAttribute::register($router, $this);
|
HandlerAttribute::register($router, $this);
|
||||||
|
|
Loading…
Reference in a new issue