Skip to content

Commit d917ef6

Browse files
committed
Bug fixed for Grouping method.
1 parent 7453f48 commit d917ef6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Router.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ function __construct($params = [])
7474
}
7575

7676
/**
77-
* Add route method; Get, Post, Put, Patch, Any, Ajax...
77+
* Add route method;
78+
* Get, Post, Put, Delete, Patch, Any, Ajax...
7879
*
7980
* @return
8081
*/
@@ -174,11 +175,10 @@ public function pattern($pattern, $attr = null)
174175
return;
175176
}
176177

177-
178178
/**
179179
* Add new middleware
180180
*
181-
* @return
181+
* @return null
182182
*/
183183
public function middleware($name, $command)
184184
{
@@ -329,7 +329,7 @@ public function group($name, $settings = null, $callback = null)
329329
array_push($this->groups, $group);
330330

331331
if(is_object($callback))
332-
call_user_func($callback);
332+
call_user_func_array($callback, [$this]);
333333

334334
$this->endGroup();
335335
}
@@ -533,7 +533,7 @@ public function exception($message = '')
533533
*
534534
* @return RouterCommand
535535
*/
536-
public function routerCommand($message = '')
536+
public function routerCommand()
537537
{
538538
return RouterCommand::getInstance();
539539
}

0 commit comments

Comments
 (0)