[ Index ] |
PHP Cross Reference of phpBB-3.3.14-deutsch |
[Summary view] [Print] [Text view]
1 <?php 2 3 declare(strict_types=1); 4 5 namespace ProxyManager\FileLocator; 6 7 use ProxyManager\Exception\InvalidProxyDirectoryException; 8 9 /** 10 * {@inheritDoc} 11 * 12 * @author Marco Pivetta <ocramius@gmail.com> 13 * @license MIT 14 */ 15 class FileLocator implements FileLocatorInterface 16 { 17 /** 18 * @var string 19 */ 20 protected $proxiesDirectory; 21 22 /** 23 * @param string $proxiesDirectory 24 * 25 * @throws \ProxyManager\Exception\InvalidProxyDirectoryException 26 */ 27 public function __construct(string $proxiesDirectory) 28 { 29 $absolutePath = realpath($proxiesDirectory); 30 31 if (false === $absolutePath) { 32 throw InvalidProxyDirectoryException::proxyDirectoryNotFound($proxiesDirectory); 33 } 34 35 $this->proxiesDirectory = $absolutePath; 36 } 37 38 /** 39 * {@inheritDoc} 40 */ 41 public function getProxyFileName(string $className) : string 42 { 43 return $this->proxiesDirectory . DIRECTORY_SEPARATOR . str_replace('\\', '', $className) . '.php'; 44 } 45 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Mon Nov 25 19:05:08 2024 | Cross-referenced by PHPXref 0.7.1 |