for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Protoku\Http\Middleware;
use Relay\MiddlewareInterface;
use Relay\ResolverInterface;
class Resolver implements ResolverInterface
{
/**
*
* Converts a middleware queue entry to a callable or an implementation of
* MiddlewareInterface.
* @param mixed $entry The middleware queue entry.
* @return callable|MiddlewareInterface
*/
public function __invoke($entry)
(new $entry)->run();
}