protected function installEntryFiles(PackageInterface $package)
    {
        foreach ($this->getEntryFileLocations($package) as $src => $dest) {
            $copied = $this->filesystem->copyFile($src, $dest);

            $this->io->notice(
                sprintf(
                    '    <fg=default>Copying <fg=magenta>%1$s</> to <fg=magenta>%2$s</> -</> %3$s',
                    $src,
                    $dest,
                    $copied ? '<fg=green>OK</>' : '<fg=red>FAILED</>'
                )
            );

            if (! $copied) {
                throw new RuntimeException(sprintf('Cannot copy %s to %s', $src, $dest));
            }
        }
    }
protected function installEntryFiles(PackageInterface $package)
    {
        foreach ($this->getEntryFileLocations($package) as $src => $dest) {
            $copied = $this->filesystem->copyFile($src, $dest);

            $this->io->notice(
                sprintf(
                    '    <fg=default>Copying <fg=magenta>%1$s</> to <fg=magenta>%2$s</> -</> %3$s',
                    $src,
                    $dest,
                    $copied ? '<fg=green>OK</>' : '<fg=red>FAILED</>'
                )
            );

            if (! $copied) {
                throw new RuntimeException(sprintf('Cannot copy %s to %s', $src, $dest));
            }
        }
    }
protected function installEntryFiles ( PackageInterface $ package ) { foreach ( $ this -> getEntryFileLocations ( $ package ) as $ src => $ dest ) { $ copied = $ this -> filesystem -> copyFile ( $ src , $ dest ) ; $ this -> io -> notice ( sprintf ( '    <fg=default>Copying <fg=magenta>%1$s</> to <fg=magenta>%2$s</> -</> %3$s' , $ src , $ dest , $ copied ? '<fg=green>OK</>' : '<fg=red>FAILED</>' ) ) ; if ( ! $ copied ) { throw new RuntimeException ( sprintf ( 'Cannot copy %s to %s' , $ src , $ dest ) ) ; } } }
Install each must-use plugin entry file

@param PackageInterface $package
@return void
Install each must - use plugin entry file