midcom accessor

flack edited this page Dec 8, 2016 · 5 revisions

Most of MidCOM's Services are available through the global midcom::get() accessor:

midcom::get()->componentloader->load('org.openpsa.documents');

Structure

Backwards Compatibility

Under the Midgard1 extension (and under Midgard 2 in backwards-compatibility mode) you can alternatively use the $_MIDCOM superglobal provided by the extension:

//old syntax:
$_MIDCOM->componentloader->load('org.openpsa.documents');

See $_MIDCOM Superglobal Migration Table for a full mapping.