original_string: public function createScope($closure) {
  		$newScope = (new static($this->request, $this->result, $this->urlGenerator));
  		$newScope->setupParent(
  			$this->prefix,
  			$this->prefixMatched,
  			$this->requestPathOffset,
  			$this->params
  		);
  		$newScope->use($this->middlewares); // Must add middlewares before adding namespace, as the middlewares are already prefixed with namespace.
  		$newScope->namespace($this->namespace);
  		$closure($newScope);
  	}
code: public function createScope($closure) {
  		$newScope = (new static($this->request, $this->result, $this->urlGenerator));
  		$newScope->setupParent(
  			$this->prefix,
  			$this->prefixMatched,
  			$this->requestPathOffset,
  			$this->params
  		);
  		$newScope->use($this->middlewares); // Must add middlewares before adding namespace, as the middlewares are already prefixed with namespace.
  		$newScope->namespace($this->namespace);
  		$closure($newScope);
  	}
code_tokens: public function createScope ( $ closure ) { $ newScope = ( new static ( $ this -> request , $ this -> result , $ this -> urlGenerator ) ) ; $ newScope -> setupParent ( $ this -> prefix , $ this -> prefixMatched , $ this -> requestPathOffset , $ this -> params ) ; $ newScope -> use ( $ this -> middlewares ) ; // Must add middlewares before adding namespace, as the middlewares are already prefixed with namespace. $ newScope -> namespace ( $ this -> namespace ) ; $ closure ( $ newScope ) ; }
docstring: Create a child scope.
  
  @param callable $closure
docstring_tokens: Create a child scope .