CoreFiles by mySites.guru
LocalFileReference.php32 lines, 679 bytes, from Joomla_4.4.13-Stable-Full_Package.zip
Raw History Compare with 4.4.12
md5
a88b1c5c2e4a4093abf69d6d24da046e
sha1
a5785a002506faad80d70caa6f5d6983b81a28fe
sha256
7e577a8e22deeb8f957c8830cc8cb10972883063b78dbd40df72f9d3eb3042c6
<?php

namespace Lcobucci\JWT\Signer\Key;

use Lcobucci\JWT\Signer\Key;

use function file_exists;
use function strpos;
use function substr;

/** @deprecated Use \Lcobucci\JWT\Signer\Key\InMemory::file() instead */
final class LocalFileReference extends Key
{
    const PATH_PREFIX = 'file://';

    /**
     * @param string $path
     * @param string $passphrase
     *
     * @return self
     *
     * @throws FileCouldNotBeRead
     */
    public static function file($path, $passphrase = '')
    {
        if (strpos($path, self::PATH_PREFIX) === 0) {
            $path = substr($path, 7);
        }

        return new self(self::PATH_PREFIX . $path, $passphrase);
    }
}

The same content is in 75 releases, Joomla 4.2.0-beta3 to 4.4.14. See them all, or every version of this file.