mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-07 09:17:35 +00:00
43 lines
913 B
PHP
43 lines
913 B
PHP
<?php
|
|
/**
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace Magento\RemoteStorage\Driver;
|
|
|
|
/**
|
|
* Factory for drivers with additional configuration.
|
|
* @api
|
|
*/
|
|
interface DriverFactoryInterface
|
|
{
|
|
/**
|
|
* Creates driver from stored config.
|
|
*
|
|
* @return RemoteDriverInterface
|
|
*
|
|
* @throws DriverException
|
|
*/
|
|
public function create(): RemoteDriverInterface;
|
|
|
|
/**
|
|
* Creates driver from config.
|
|
*
|
|
* @param array $config
|
|
* @param string $prefix
|
|
* @param string $cacheAdapter
|
|
* @param array $cacheConfig
|
|
* @return RemoteDriverInterface
|
|
*
|
|
* @throws DriverException
|
|
*/
|
|
public function createConfigured(
|
|
array $config,
|
|
string $prefix,
|
|
string $cacheAdapter = '',
|
|
array $cacheConfig = []
|
|
): RemoteDriverInterface;
|
|
}
|