diff options
Diffstat (limited to 'src/Group.php')
| -rw-r--r-- | src/Group.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Group.php b/src/Group.php index 05fa93b..9faae2c 100644 --- a/src/Group.php +++ b/src/Group.php @@ -4,16 +4,22 @@ declare(strict_types=1); namespace Lightscale\Router; +use Lightscale\Router\Contracts\Middleware; + class Group { use Concerns\HasAncestors; + use Concerns\HasMiddleware; + /** @param Middleware[] $middleware */ public function __construct( private Router $router, private ?Group $parent, private ?string $prefix = null, private ?string $name = null, + array $middleware = [], ) { + $this->middleware = $middleware; } public function getRouter(): Router |
