Documentation

InteractsWithContainer

Table of Contents

instance()  : object
Register an instance of an object in the container.
swap()  : object
Register an instance of an object in the container.

Methods

instance()

Register an instance of an object in the container.

protected instance(string $abstract, object $instance) : object
Parameters
$abstract : string
$instance : object
Return values
object

swap()

Register an instance of an object in the container.

protected swap(string $abstract, object $instance) : object
Parameters
$abstract : string
$instance : object
Return values
object

Search results