CapsuleManagerTrait

trait CapsuleManagerTrait (View source)

Properties

static protected object $instance The current globally used instance.
protected Container $container The container instance.

Methods

void setupContainer(Container $container)

Setup the IoC container instance.

void setAsGlobal()

Make this capsule instance available globally.

Container getContainer()

Get the IoC container instance.

void setContainer(Container $container)

Set the IoC container instance.

Details

protected void setupContainer(Container $container)

Setup the IoC container instance.

Parameters

Container $container

Return Value

void

void setAsGlobal()

Make this capsule instance available globally.

Return Value

void

Container getContainer()

Get the IoC container instance.

Return Value

Container

void setContainer(Container $container)

Set the IoC container instance.

Parameters

Container $container

Return Value

void

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.7/Illuminate/Support/Traits/CapsuleManagerTrait.html