Singleton

IoC Singleton class.

 class Winter\Storm\Support\Singleton

A self binding, self contained single class that supports IoC. Usage: myObject::instance()

Methods

public __clone ()

Returns
mixed

public __wakeup ()

Returns
mixed

public static final getSingletonInstance ()

Returns
mixed

public static final instance ()

Create a new instance of this singleton.

Returns
mixed

protected final __construct ()

Constructor.

Returns
mixed

protected static getSingletonAccessor ()

This should be a meaningful IoC container code. Eg: backend.helper

Returns
mixed

protected init ()

Initialize the singleton free from constructor parameters.

Returns
mixed
Copyright © 2024 Winter CMS