protected function executeIncludeAssets(array $assets, $build_path)
    {
        $root_path = ProjectX::projectRoot();

        foreach ($assets as $asset) {
            $file_info = new \splFileInfo("{$root_path}/{$asset}");
            if (!file_exists($file_info)) {
                continue;
            }
            $file_path = $file_info->getRealPath();
            $file_method = $file_info->isFile() ? '_copy' : '_mirrorDir';

            call_user_func_array([$this, $file_method], [
                $file_path,
                "{$build_path}/{$file_info->getFilename()}"
            ]);
        }
    }
protected function executeIncludeAssets(array $assets, $build_path)
    {
        $root_path = ProjectX::projectRoot();

        foreach ($assets as $asset) {
            $file_info = new \splFileInfo("{$root_path}/{$asset}");
            if (!file_exists($file_info)) {
                continue;
            }
            $file_path = $file_info->getRealPath();
            $file_method = $file_info->isFile() ? '_copy' : '_mirrorDir';

            call_user_func_array([$this, $file_method], [
                $file_path,
                "{$build_path}/{$file_info->getFilename()}"
            ]);
        }
    }
protected function executeIncludeAssets ( array $ assets , $ build_path ) { $ root_path = ProjectX :: projectRoot ( ) ; foreach ( $ assets as $ asset ) { $ file_info = new \ splFileInfo ( "{$root_path}/{$asset}" ) ; if ( ! file_exists ( $ file_info ) ) { continue ; } $ file_path = $ file_info -> getRealPath ( ) ; $ file_method = $ file_info -> isFile ( ) ? '_copy' : '_mirrorDir' ; call_user_func_array ( [ $ this , $ file_method ] , [ $ file_path , "{$build_path}/{$file_info->getFilename()}" ] ) ; } }
Execute including assets to the build directory.

@param array $assets
@param $build_path
Execute including assets to the build directory .