Semantic MediaWiki and related extensions
README

Services contain object definitions that with the help of a builder will handle the object build process and provides instance reuse, if necessary.

$smwgServicesFileDir describes the location of the services directory.

Services factory

Object instances are generally accessed using the ServicesFactory locator and its public methods.

Service files and containers

Files

Containers

Service specific factories

Services registration

$containerBuilder = new CallbackContainerFactory();
$containerBuilder = $callbackContainerFactory->newCallbackContainerBuilder();
$containerBuilder->registerCallbackContainer( new SharedServicesContainer() );
$containerBuilder->registerFromFile(
    $GLOBALS['smwgServicesFileDir'] . '/' . 'mediawiki.php'
);

About | General disclaimer | Privacy policy