Updated to short property syntax.

This commit is contained in:
flash 2024-05-22 20:59:53 +00:00
parent ac4a2deca6
commit b3a3e837bc

View file

@ -7,13 +7,10 @@ use Index\Serialisation\Base62;
use Syokuhou\IConfig;
final class RedirectorRoutes implements IRouteHandler {
private IDbConnection $dbConn;
private IConfig $urls;
public function __construct(IDbConnection $dbConn, IConfig $urls) {
$this->dbConn = $dbConn;
$this->urls = $urls;
}
public function __construct(
private IDbConnection $dbConn,
private IConfig $urls
) {}
public function registerRoutes(IRouter $router): void {
HandlerAttribute::register($router, $this);