public function addApp(string $path, $ext, string $module)
    {
        $ext_key = empty($ext) ? '_' : $ext;
        if (!isset($this->apps[$ext_key]))
        {
            $this->apps[$ext_key] = array(
                'path' => $path,
                'module' => $module, 
                'route' => $this->route, 
                'ext' => $ext,
                'depth' => $this->depth
            );
        }
        return $this;
    }
public function addApp(string $path, $ext, string $module)
    {
        $ext_key = empty($ext) ? '_' : $ext;
        if (!isset($this->apps[$ext_key]))
        {
            $this->apps[$ext_key] = array(
                'path' => $path,
                'module' => $module, 
                'route' => $this->route, 
                'ext' => $ext,
                'depth' => $this->depth
            );
        }
        return $this;
    }
public function addApp ( string $ path , $ ext , string $ module ) { $ ext_key = empty ( $ ext ) ? '_' : $ ext ; if ( ! isset ( $ this -> apps [ $ ext_key ] ) ) { $ this -> apps [ $ ext_key ] = array ( 'path' => $ path , 'module' => $ module , 'route' => $ this -> route , 'ext' => $ ext , 'depth' => $ this -> depth ) ; } return $ this ; }
Link an app to this route.
@param string $path The path to the app
@param string $ext The file extension for this app
@param string $module The module this app belongs to
@return Route Provides fluent interface
Link an app to this route .