Skip to content
docsv0.13.1

PluginBase

Convenience base class for Milpa plugins: container plumbing (service registration/lookup, logging) plus the entity-schema pair. The schema pair discovers the REAL fully-qualified class names by reading each file's namespace/class declaration — never guessing a namespace from the directory layout — and delegates the work to the host's {@see PluginSchemaManagerInterface} adapter resolved from the container.

PluginBase::__construct()

public function __construct(Milpa\Interfaces\Di\DIContainerInterface $container):

Parameters

Parameters of __construct()
NameTypeDescription
$containerMilpa\Interfaces\Di\DIContainerInterface