blob: e6e45889f923262cb73c898d423402c22f90996e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<?php
declare(strict_types=1);
namespace Lightscale\Router\Concerns;
use Lightscale\Router\Group;
trait CreatesGroups
{
public function prefix(string $value): Group
{
return new Group(
router: $this->getRouter(),
parent: $this->getGroup(),
prefix: $value,
);
}
public function name(string $value): Group
{
return new Group(
router: $this->getRouter(),
parent: $this->getGroup(),
name: $value,
);
}
}
|