public function getPackageAndPathByPublicPath($path)
    {
        if (preg_match(self::PUBLIC_RESSOURCE_REGEXP, $path, $matches) !== 1) {
            throw new Exception(sprintf('The path "%s" which was given must point to a public resource.', $path), 1450358448);
        }
        return [
            0 => $matches['packageKey'],
            1 => $matches['relativePathAndFilename']
        ];
    }
public function getPackageAndPathByPublicPath($path)
    {
        if (preg_match(self::PUBLIC_RESSOURCE_REGEXP, $path, $matches) !== 1) {
            throw new Exception(sprintf('The path "%s" which was given must point to a public resource.', $path), 1450358448);
        }
        return [
            0 => $matches['packageKey'],
            1 => $matches['relativePathAndFilename']
        ];
    }
public function getPackageAndPathByPublicPath ( $ path ) { if ( preg_match ( self :: PUBLIC_RESSOURCE_REGEXP , $ path , $ matches ) !== 1 ) { throw new Exception ( sprintf ( 'The path "%s" which was given must point to a public resource.' , $ path ) , 1450358448 ) ; } return [ 0 => $ matches [ 'packageKey' ] , 1 => $ matches [ 'relativePathAndFilename' ] ] ; }
Return the package key and the relative path and filename from the given resource path

@param string $path The ressource path, like resource://Your.Package/Public/Image/Dummy.png
@return array The array contains two value, first the packageKey followed by the relativePathAndFilename
@throws Exception
@api
Return the package key and the relative path and filename from the given resource path