public function drawRoutes(Closure $block)
    {
        $block = $block->bindTo($this);
        $block();
        
        if (!$this->routeSet->rootRoute()) {
            $this->root(self::ROOT_DEFAULT_TO);
        }
        
        $this->createPanelRoute();
        $this->createAssetsRoute();
    }
public function drawRoutes(Closure $block)
    {
        $block = $block->bindTo($this);
        $block();
        
        if (!$this->routeSet->rootRoute()) {
            $this->root(self::ROOT_DEFAULT_TO);
        }
        
        $this->createPanelRoute();
        $this->createAssetsRoute();
    }
public function drawRoutes ( Closure $ block ) { $ block = $ block -> bindTo ( $ this ) ; $ block ( ) ; if ( ! $ this -> routeSet -> rootRoute ( ) ) { $ this -> root ( self :: ROOT_DEFAULT_TO ) ; } $ this -> createPanelRoute ( ) ; $ this -> createAssetsRoute ( ) ; }
Used by Rails.
Used by Rails .