Skip to content

Commit

Permalink
修改route option方法
Browse files Browse the repository at this point in the history
  • Loading branch information
titrxw committed Sep 21, 2022
1 parent c84b823 commit ec9fa48
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Src/Core/Route/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Route implements RouteInterface {
public $args = [];
public $middleware = [];
public $defaults = [];
public $options = [];
public $option = [];

public function __construct($name, $uri, $module, $handler, array $args = [], array $middleware = [], array $defaults = [], $options = []) {
$this->name = $name;
Expand All @@ -36,7 +36,7 @@ public function __construct($name, $uri, $module, $handler, array $args = [], ar
$this->args = $args;
$this->middleware = $middleware;
$this->defaults = $defaults;
$this->options = $options;
$this->option = $options;
}

public function getName() {
Expand Down Expand Up @@ -92,8 +92,8 @@ public function getMiddleware() : array {
return $middleware;
}

public function getOptions() : array {
return $this->options;
public function getOption() : array {
return $this->option;
}

protected static function methodExcludedByOptions($method, array $options) {
Expand Down

0 comments on commit ec9fa48

Please sign in to comment.