| 1 | <?php |
||
| 11 | class ExternalStorageRegistry |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Collection of external storage handlers for field types that need them. |
||
| 15 | * |
||
| 16 | * @var \eZ\Publish\SPI\FieldType\FieldStorage[] |
||
| 17 | */ |
||
| 18 | protected $externalStorages; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param \eZ\Publish\SPI\FieldType\FieldStorage[] $externalStorages |
||
| 22 | */ |
||
| 23 | public function __construct(array $externalStorages) |
||
| 27 | |||
| 28 | public function registerExternalStorageHandler(string $identifier, $externalStorage): void |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return \eZ\Publish\SPI\FieldType\FieldStorage[] |
||
| 35 | */ |
||
| 36 | public function getExternalStorageHandlers(): array |
||
| 40 | } |
||
| 41 |