protected function checkAndRemovePackageSymlinks(StorageInterface $storage)
    {
        if (!$storage instanceof PackageStorage) {
            return;
        }
        foreach ($storage->getPublicResourcePaths() as $packageKey => $path) {
            $targetPathAndFilename = $this->path . $packageKey;
            if (Files::is_link($targetPathAndFilename)) {
                Files::unlink($targetPathAndFilename);
            }
        }
    }
protected function checkAndRemovePackageSymlinks(StorageInterface $storage)
    {
        if (!$storage instanceof PackageStorage) {
            return;
        }
        foreach ($storage->getPublicResourcePaths() as $packageKey => $path) {
            $targetPathAndFilename = $this->path . $packageKey;
            if (Files::is_link($targetPathAndFilename)) {
                Files::unlink($targetPathAndFilename);
            }
        }
    }
protected function checkAndRemovePackageSymlinks ( StorageInterface $ storage ) { if ( ! $ storage instanceof PackageStorage ) { return ; } foreach ( $ storage -> getPublicResourcePaths ( ) as $ packageKey => $ path ) { $ targetPathAndFilename = $ this -> path . $ packageKey ; if ( Files :: is_link ( $ targetPathAndFilename ) ) { Files :: unlink ( $ targetPathAndFilename ) ; } } }
Checks if the PackageStorage has been previously initialized with symlinks
and clears them. Otherwise the original sources would be overwritten.

@param StorageInterface $storage
@return void
Checks if the PackageStorage has been previously initialized with symlinks and clears them . Otherwise the original sources would be overwritten .