[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 namespace Lcobucci\JWT\Signer\Key; 4 5 use Lcobucci\JWT\Signer\Key; 6 7 use function file_exists; 8 use function strpos; 9 use function substr; 10 11 /** @deprecated Use \Lcobucci\JWT\Signer\Key\InMemory::file() instead */ 12 final class LocalFileReference extends Key 13 { 14 const PATH_PREFIX = 'file://'; 15 16 /** 17 * @param string $path 18 * @param string $passphrase 19 * 20 * @return self 21 * 22 * @throws FileCouldNotBeRead 23 */ 24 public static function file($path, $passphrase = '') 25 { 26 if (strpos($path, self::PATH_PREFIX) === 0) { 27 $path = substr($path, 7); 28 } 29 30 return new self(self::PATH_PREFIX . $path, $passphrase); 31 } 32 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |