class ExtensionMetadataFactory

Class ExtensionMetadataFactory

Properties

protected Chain $driver Extension driver
protected object $objectManager Object manager, entity or document
protected string $extensionNamespace Extension namespace
protected object $annotationReader Custom annotation reader

Methods

__construct(ObjectManager $objectManager, string $extensionNamespace, object $annotationReader)

Initializes extension driver

array
getExtensionMetadata(object $meta)

Reads extension metadata

static string
getCacheId(string $className, string $extensionNamespace)

Get the cache id

Chain|null
getDriver(object $omDriver)

Get the extended driver instance which will read the metadata required by extension

Details

at line 55
__construct(ObjectManager $objectManager, string $extensionNamespace, object $annotationReader)

Initializes extension driver

Parameters

ObjectManager $objectManager
string $extensionNamespace
object $annotationReader

at line 71
array getExtensionMetadata(object $meta)

Reads extension metadata

Parameters

object $meta

Return Value

array
  • the metatada configuration

at line 119
static string getCacheId(string $className, string $extensionNamespace)

Get the cache id

Parameters

string $className
string $extensionNamespace

Return Value

string

at line 132
protected Chain|null getDriver(object $omDriver)

Get the extended driver instance which will read the metadata required by extension

Parameters

object $omDriver

Return Value

Chain|null

Exceptions

RuntimeException if driver was not found in extension