protected function copySkeleton(
        $packagePath,
        $vendor,
        $package,
        $vendorFolderName,
        $packageFolderName
    ) {
        $this->info('Copy skeleton.');

        $skeletonDirPath = $this->getPathFromConfig(
            'skeleton_dir_path', $this->packageBaseDir.'/skeleton'
        );

        foreach (File::allFiles($skeletonDirPath, true) as $filePath) {
            $filePath = realpath($filePath);

            $destFilePath = Str::replaceFirst(
                $skeletonDirPath, $packagePath, $filePath
            );

            $this->copyFileWithDirsCreating($filePath, $destFilePath);
        }

        $this->copyStubs($packagePath, $package, $packageFolderName);

        $variables = $this->getVariables(
            $vendor, $package, $vendorFolderName, $packageFolderName
        );
        $this->replaceTemplates($packagePath, $variables);

        $this->info('Skeleton was successfully copied.');
    }
protected function copySkeleton(
        $packagePath,
        $vendor,
        $package,
        $vendorFolderName,
        $packageFolderName
    ) {
        $this->info('Copy skeleton.');

        $skeletonDirPath = $this->getPathFromConfig(
            'skeleton_dir_path', $this->packageBaseDir.'/skeleton'
        );

        foreach (File::allFiles($skeletonDirPath, true) as $filePath) {
            $filePath = realpath($filePath);

            $destFilePath = Str::replaceFirst(
                $skeletonDirPath, $packagePath, $filePath
            );

            $this->copyFileWithDirsCreating($filePath, $destFilePath);
        }

        $this->copyStubs($packagePath, $package, $packageFolderName);

        $variables = $this->getVariables(
            $vendor, $package, $vendorFolderName, $packageFolderName
        );
        $this->replaceTemplates($packagePath, $variables);

        $this->info('Skeleton was successfully copied.');
    }
protected function copySkeleton ( $ packagePath , $ vendor , $ package , $ vendorFolderName , $ packageFolderName ) { $ this -> info ( 'Copy skeleton.' ) ; $ skeletonDirPath = $ this -> getPathFromConfig ( 'skeleton_dir_path' , $ this -> packageBaseDir . '/skeleton' ) ; foreach ( File :: allFiles ( $ skeletonDirPath , true ) as $ filePath ) { $ filePath = realpath ( $ filePath ) ; $ destFilePath = Str :: replaceFirst ( $ skeletonDirPath , $ packagePath , $ filePath ) ; $ this -> copyFileWithDirsCreating ( $ filePath , $ destFilePath ) ; } $ this -> copyStubs ( $ packagePath , $ package , $ packageFolderName ) ; $ variables = $ this -> getVariables ( $ vendor , $ package , $ vendorFolderName , $ packageFolderName ) ; $ this -> replaceTemplates ( $ packagePath , $ variables ) ; $ this -> info ( 'Skeleton was successfully copied.' ) ; }
Copy skeleton to package folder.

@param string $packagePath
@param string $vendor
@param string $package
@param string $vendorFolderName
@param string $packageFolderName

@throws RuntimeException
Copy skeleton to package folder .