public function mount($baseRoute, $fn)
    {
        // Track current base route
        $curBaseRoute = $this->baseRoute;

        // Build new base route string
        $this->baseRoute .= $baseRoute;

        // Call the callable
        call_user_func($fn);

        // Restore original base route
        $this->baseRoute = $curBaseRoute;
    }
public function mount($baseRoute, $fn)
    {
        // Track current base route
        $curBaseRoute = $this->baseRoute;

        // Build new base route string
        $this->baseRoute .= $baseRoute;

        // Call the callable
        call_user_func($fn);

        // Restore original base route
        $this->baseRoute = $curBaseRoute;
    }
public function mount ( $ baseRoute , $ fn ) { // Track current base route $ curBaseRoute = $ this -> baseRoute ; // Build new base route string $ this -> baseRoute .= $ baseRoute ; // Call the callable call_user_func ( $ fn ) ; // Restore original base route $ this -> baseRoute = $ curBaseRoute ; }
Mounts a collection of callbacks onto a base route.

@param string   $baseRoute The route sub pattern to mount the callbacks on
@param callable $fn        The callback method
Mounts a collection of callbacks onto a base route .