public static function mirror($source, $dest, PackageEvent $event)
    {
        if (realpath($source) === realpath($dest)) {
            return;
        }
        $fs = new Filesystem();
        try {
            $fs->mirror($source, $dest);
        } catch (IOException $e) {
            $event->getIO()->writeError(sprintf('Mirroring %s to %s failed:', $source, $dest));
            $event->getIO()->writeError($e->getMessage());
        }
    }
public static function mirror($source, $dest, PackageEvent $event)
    {
        if (realpath($source) === realpath($dest)) {
            return;
        }
        $fs = new Filesystem();
        try {
            $fs->mirror($source, $dest);
        } catch (IOException $e) {
            $event->getIO()->writeError(sprintf('Mirroring %s to %s failed:', $source, $dest));
            $event->getIO()->writeError($e->getMessage());
        }
    }
public static function mirror ( $ source , $ dest , PackageEvent $ event ) { if ( realpath ( $ source ) === realpath ( $ dest ) ) { return ; } $ fs = new Filesystem ( ) ; try { $ fs -> mirror ( $ source , $ dest ) ; } catch ( IOException $ e ) { $ event -> getIO ( ) -> writeError ( sprintf ( 'Mirroring %s to %s failed:' , $ source , $ dest ) ) ; $ event -> getIO ( ) -> writeError ( $ e -> getMessage ( ) ) ; } }
Mirror a directory if the two directories don't match.

@param string       $source
@param string       $dest
@param PackageEvent $event
Mirror a directory if the two directories don t match .