code: protected function resolve()
  	{
  		if ($this->resolved) {
  			return;
  		}
  
  		$this->resolved = [];
  		foreach ($this->stages as $stage) {
  			$this->resolved[] = $this->build($stage);
  		}
  	}
docs: Resolves all stages to middleware