⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
shopware
/
vendor
/
enqueue
/
enqueue
/
Doctrine
/
View File Name :
DoctrineDriverFactory.php
<?php namespace Enqueue\Doctrine; use Enqueue\Client\Config; use Enqueue\Client\Driver\DbalDriver; use Enqueue\Client\DriverFactoryInterface; use Enqueue\Client\DriverInterface; use Enqueue\Client\RouteCollection; use Enqueue\Dsn\Dsn; use Interop\Queue\ConnectionFactory; class DoctrineDriverFactory implements DriverFactoryInterface { /** * @var DriverFactoryInterface */ private $fallbackFactory; public function __construct(DriverFactoryInterface $fallbackFactory) { $this->fallbackFactory = $fallbackFactory; } public function create(ConnectionFactory $factory, Config $config, RouteCollection $collection): DriverInterface { $dsn = $config->getTransportOption('dsn'); if (empty($dsn)) { throw new \LogicException('This driver factory relies on dsn option from transport config. The option is empty or not set.'); } $dsn = Dsn::parseFirst($dsn); if ('doctrine' === $dsn->getScheme()) { return new DbalDriver($factory->createContext(), $config, $collection); } return $this->fallbackFactory->create($factory, $config, $collection); } }