Documentation

AutoServiceInterface

The CiviCRM container will automatically load classes that implement AutoServiceInterface.

Formally, this resembles hook_container and CompilerPassInterface. However, the build method must be static (running before CiviCRM has fully booted), and downstream implementations should generally register concrete services (rather performing meta-services like tag-evaluation).

Table of Contents

Methods

buildContainer()  : void
Register any services with the container.

Methods

buildContainer()

Register any services with the container.

public static buildContainer(ContainerBuilder $container) : void
Parameters
$container : ContainerBuilder

        
On this page

Search results