for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace League\Route\Middleware;
trait StackAwareTrait
{
/**
* @var callable[]
*/
protected $middleware = [];
* {@inheritdoc}
public function middleware(callable $middleware)
$this->middleware[] = $middleware;
return $this;
}
public function getMiddlewareStack()
return $this->middleware;