File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,15 +35,15 @@ public function __construct(array $stack = [])
35
35
$ this ->stack = new SplStack ();
36
36
37
37
foreach ($ stack as $ value ) {
38
- $ this ->push ($ value );
38
+ $ this ->before ($ value );
39
39
}
40
40
}
41
41
42
42
/**
43
43
* @param MiddlewareInterface $middleware
44
44
* @return Dispatcher
45
45
*/
46
- public function before (MiddlewareInterface $ middleware )
46
+ public function after (MiddlewareInterface $ middleware )
47
47
{
48
48
$ this ->stack ->unshift ($ middleware );
49
49
@@ -54,7 +54,7 @@ public function before(MiddlewareInterface $middleware)
54
54
* @param MiddlewareInterface $middleware
55
55
* @return Dispatcher
56
56
*/
57
- public function push (MiddlewareInterface $ middleware )
57
+ public function before (MiddlewareInterface $ middleware )
58
58
{
59
59
$ this ->stack ->push ($ middleware );
60
60
You can’t perform that action at this time.
0 commit comments