KMP PHP API Reference

ServicesTrait

Table of Contents

Properties

$container  : ContainerInterface|null

Methods

setContainer()  : void
getService()  : T

Properties

$container

protected ContainerInterface|null $container = null

Methods

setContainer()

public setContainer(ContainerInterface $container) : void
Parameters
$container : ContainerInterface

getService()

protected getService(T> $id) : T
Parameters
$id : T>

Classname or identifier of the service you want to retrieve

Tags
template
throws
ContainerExceptionInterface
throws
NotFoundExceptionInterface
Return values
T

        
On this page

Search results