src/Router.php
public function mount($baseroute, $callable, $extra = [])
	{
		$Route = clone $this->Route;
		$this->Route->addExtra($extra);
		// Track current baseroute
		$curBaseroute = $this->baseUri;

		$this->baseUri .= $baseroute;

		// Call the callable
		$callable($this);
		$this->Route = $Route;

		// Restore original baseroute
		$this->baseUri = $curBaseroute;
	}
public function mount($baseroute, $callable, $extra = [])
	{
		$Route = clone $this->Route;
		$this->Route->addExtra($extra);
		// Track current baseroute
		$curBaseroute = $this->baseUri;

		$this->baseUri .= $baseroute;

		// Call the callable
		$callable($this);
		$this->Route = $Route;

		// Restore original baseroute
		$this->baseUri = $curBaseroute;
	}
public function mount ( $ baseroute , $ callable , $ extra = [ ] ) { $ Route = clone $ this -> Route ; $ this -> Route -> addExtra ( $ extra ) ; // Track current baseroute $ curBaseroute = $ this -> baseUri ; $ this -> baseUri .= $ baseroute ; // Call the callable $ callable ( $ this ) ; $ this -> Route = $ Route ; // Restore original baseroute $ this -> baseUri = $ curBaseroute ; }
Mount multiple routes via callabck
@param  string $baseroute Base route for all routes in given callback
@param  callable $callable  Callable to execute
Mount multiple routes via callabck