generated from Nodarx/template
refactor: use custom imap client
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
16
lib/Client/Transport/SocketConnectionFactory.php
Normal file
16
lib/Client/Transport/SocketConnectionFactory.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace KTXM\ProviderImap\Client\Transport;
|
||||
|
||||
use KTXM\ProviderImap\Client\ConnectionConfig;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
||||
final class SocketConnectionFactory implements ConnectionFactoryInterface
|
||||
{
|
||||
public function create(ConnectionConfig $config, ?LoggerInterface $logger = null): ConnectionInterface
|
||||
{
|
||||
return new SocketConnection($config, $logger);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user