ヤミ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
/
nelmio
/
alice
/
src
/
Definition
/
Fixture
/
Viewing: Templating.php
<?php /* * This file is part of the Alice package. * * (c) Nelmio <hello@nelm.io> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace Nelmio\Alice\Definition\Fixture; use Nelmio\Alice\Definition\FixtureWithFlagsInterface; use Nelmio\Alice\Definition\Flag\ExtendFlag; use Nelmio\Alice\Definition\Flag\TemplateFlag; use Nelmio\Alice\Definition\ServiceReference\FixtureReference; /** * Helper to easily manipulate flags related to templates. * * @private */ final class Templating { /** * @var bool */ private $isATemplate = false; /** * @var FixtureReference[] */ private $extends = []; public function __construct(FixtureWithFlagsInterface $fixture) { $flags = $fixture->getFlags(); foreach ($flags as $flag) { if ($flag instanceof TemplateFlag) { $this->isATemplate = true; continue; } if ($flag instanceof ExtendFlag) { // Potential flag duplication is handled at the flagbag level array_unshift($this->extends, $flag->getExtendedFixture()); } } } public function isATemplate(): bool { return $this->isATemplate; } public function extendsFixtures(): bool { return [] !== $this->extends; } /** * @return FixtureReference[] List of the full references of the extended fixtures. */ public function getExtendedFixtures(): array { return $this->extends; } }
Coded With 💗 by
0x6ick