for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Philae\Middlewares;
use Interop\Http\ServerMiddleware\MiddlewareInterface;
use League\Container\ContainerAwareInterface;
use League\Container\ContainerAwareTrait;
abstract class AbstractMiddleware implements MiddlewareInterface, ContainerAwareInterface
{
use ContainerAwareTrait;
/**
* @var string Middleware attribute name
*/
protected $attribute;
* Set the middleware attribute name.
*
* @param string $attribute
* @return $this|self
public function attribute(string $attribute): AbstractMiddleware
$this->attribute = $attribute;
return $this;
}