class ZfExtensionManagerSfContainer implements ExtensionManagerInterface, ExtensionManagerInterface, ContainerAwareInterface (View source)

Defines a bridge between the Laminas service manager to Symfony container.

Properties

protected array $canonicalNamesReplacements

A map of characters to be replaced through strtr.

protected string $prefix

The prefix to be used when retrieving plugins from the container.

protected ContainerInterface $container

The service container.

protected string[] $canonicalNames

A local cache of computed canonical names.

protected ExtensionManagerInterface|ExtensionManagerInterface $standalone

Methods

__construct(string $prefix = '')

Constructs a ZfExtensionManagerSfContainer object.

get($extension)

{@inheritdoc}

has($extension)

{@inheritdoc}

string
canonicalizeName(string $name)

Canonicalize the extension name to a service name.

setContainer(ContainerInterface $container = NULL)

{@inheritdoc}

setStandalone($class)

No description

Details

__construct(string $prefix = '')

Constructs a ZfExtensionManagerSfContainer object.

Parameters

string $prefix

The prefix to be used when retrieving plugins from the container.

get($extension)

{@inheritdoc}

Parameters

$extension

has($extension)

{@inheritdoc}

Parameters

$extension

protected string canonicalizeName(string $name)

Canonicalize the extension name to a service name.

This method is based on Laminas service manager.

Parameters

string $name

The extension name.

Return Value

string

The service name, without the prefix.

See also

https://github.com/laminas/laminas-servicemanager/blob/2.7.11/src/ServiceManager.php#L900

setContainer(ContainerInterface $container = NULL)

{@inheritdoc}

Parameters

ContainerInterface $container

setStandalone($class)

No description

Parameters

$class

The class to set as standalone.