Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.135.201.190
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
wb /
vendor /
doctrine /
doctrine-bundle /
Orm /
Delete
Unzip
Name
Size
Permission
Date
Action
ManagerRegistryAwareEntityManagerProvider.php
1.15
KB
-rw-rw-r--
2022-06-10 10:55
Save
Rename
<?php namespace Doctrine\Bundle\DoctrineBundle\Orm; use Doctrine\ORM\EntityManagerInterface; use Doctrine\ORM\Tools\Console\EntityManagerProvider; use Doctrine\Persistence\ManagerRegistry; use RuntimeException; use function get_class; use function sprintf; final class ManagerRegistryAwareEntityManagerProvider implements EntityManagerProvider { /** @var ManagerRegistry */ private $managerRegistry; public function __construct(ManagerRegistry $managerRegistry) { $this->managerRegistry = $managerRegistry; } public function getDefaultManager(): EntityManagerInterface { return $this->getManager($this->managerRegistry->getDefaultManagerName()); } public function getManager(string $name): EntityManagerInterface { $em = $this->managerRegistry->getManager($name); if ($em instanceof EntityManagerInterface) { return $em; } throw new RuntimeException( sprintf( 'Only managers of type "%s" are supported. Instance of "%s given.', EntityManagerInterface::class, get_class($em) ) ); } }