protected function mergeCustomMiddlewares(\Stack\Builder $stack)
	{
		foreach ($this->middlewares as $middleware)
		{
			list($class, $parameters) = array_values($middleware);

			array_unshift($parameters, $class);

			call_user_func_array(array($stack, 'push'), $parameters);
		}
	}
protected function mergeCustomMiddlewares(\Stack\Builder $stack)
	{
		foreach ($this->middlewares as $middleware)
		{
			list($class, $parameters) = array_values($middleware);

			array_unshift($parameters, $class);

			call_user_func_array(array($stack, 'push'), $parameters);
		}
	}
protected function mergeCustomMiddlewares ( \ Stack \ Builder $ stack ) { foreach ( $ this -> middlewares as $ middleware ) { list ( $ class , $ parameters ) = array_values ( $ middleware ) ; array_unshift ( $ parameters , $ class ) ; call_user_func_array ( array ( $ stack , 'push' ) , $ parameters ) ; } }
Merge the developer defined middlewares onto the stack.

@param  \Stack\Builder
@return void
Merge the developer defined middlewares onto the stack .