package and depencies

This commit is contained in:
RafficMohammed
2023-01-08 02:57:24 +05:30
parent d5332eb421
commit 1d54b8bc7f
4309 changed files with 193331 additions and 172289 deletions

View File

@@ -35,7 +35,7 @@ trait AddTrait
*
* @param string|array $path the path, or the localized paths of the route
*/
public function add(string $name, $path): RouteConfigurator
public function add(string $name, string|array $path): RouteConfigurator
{
$parentConfigurator = $this instanceof CollectionConfigurator ? $this : ($this instanceof RouteConfigurator ? $this->parentConfigurator : null);
$route = $this->createLocalizedRoute($this->collection, $name, $path, $this->name, $this->prefixes);
@@ -53,7 +53,7 @@ trait AddTrait
*
* @param string|array $path the path, or the localized paths of the route
*/
public function __invoke(string $name, $path): RouteConfigurator
public function __invoke(string $name, string|array $path): RouteConfigurator
{
return $this->add($name, $path);
}