Skip to content
Permalink
Browse files

Add back push() as alias for MiddlewareQueue::add().

  • Loading branch information...
ADmad committed Jul 25, 2016
1 parent 3c3bbbe commit 255fb52d1c607170b72303fe0d5cc36a2a2e03fb
Showing with 12 additions and 0 deletions.
  1. +12 −0 src/Http/MiddlewareQueue.php
@@ -59,6 +59,18 @@ public function add(callable $callable)
return $this;
}
/**
* Alias for MiddlewareQueue::add().
*
* @param callable $callable The middleware callable to append.
* @return $this
* @see MiddlewareQueue::add()
*/
public function push(callable $callable)
{
return $this->add($callable);
}
/**
* Prepend a middleware callable to the start of the queue.
*

0 comments on commit 255fb52

Please sign in to comment.
You can’t perform that action at this time.