protected function prepareRelativePublicationPath($objectPath, $packageKey, $packageResourcePath)
    {
        $relativePathParts = explode('/', str_replace($packageResourcePath, '', $objectPath), 2);
        $relativePath = '';
        if (isset($relativePathParts[1])) {
            $relativePath = $relativePathParts[1];
        }

        return Files::concatenatePaths([$packageKey, $relativePath]) . '/';
    }
protected function prepareRelativePublicationPath($objectPath, $packageKey, $packageResourcePath)
    {
        $relativePathParts = explode('/', str_replace($packageResourcePath, '', $objectPath), 2);
        $relativePath = '';
        if (isset($relativePathParts[1])) {
            $relativePath = $relativePathParts[1];
        }

        return Files::concatenatePaths([$packageKey, $relativePath]) . '/';
    }
protected function prepareRelativePublicationPath ( $ objectPath , $ packageKey , $ packageResourcePath ) { $ relativePathParts = explode ( '/' , str_replace ( $ packageResourcePath , '' , $ objectPath ) , 2 ) ; $ relativePath = '' ; if ( isset ( $ relativePathParts [ 1 ] ) ) { $ relativePath = $ relativePathParts [ 1 ] ; } return Files :: concatenatePaths ( [ $ packageKey , $ relativePath ] ) . '/' ; }
Prepares a relative publication path for a package resource.

@param string $objectPath
@param string $packageKey
@param string $packageResourcePath
@return string
Prepares a relative publication path for a package resource .