src/Resolve/Resolve.php
protected function resolveMiddlewarePipeline($value)
	{
		$value = strstr($value, '|', true);
		$instantiator = $this->instantiator;
		$middleware = $instantiator(\Weave\Middleware\Middleware::class);
		return function (Request $request, $response = null) use ($middleware, $value) {
			return $middleware->chain($value, $request, $response);
		};
	}
protected function resolveMiddlewarePipeline($value)
	{
		$value = strstr($value, '|', true);
		$instantiator = $this->instantiator;
		$middleware = $instantiator(\Weave\Middleware\Middleware::class);
		return function (Request $request, $response = null) use ($middleware, $value) {
			return $middleware->chain($value, $request, $response);
		};
	}
protected function resolveMiddlewarePipeline ( $ value ) { $ value = strstr ( $ value , '|' , true ) ; $ instantiator = $ this -> instantiator ; $ middleware = $ instantiator ( \ Weave \ Middleware \ Middleware :: class ) ; return function ( Request $ request , $ response = null ) use ( $ middleware , $ value ) { return $ middleware -> chain ( $ value , $ request , $ response ) ; } ; }
Resolve the provided value to a named middleware chain.

@param string $value The name of the middleware chain plus optional chained dispatch.

@return callable A callable that executes the middleware chain.
Resolve the provided value to a named middleware chain .