October\Rain\Support\Singleton

Source: ~/vendor/october/rain/src/Support/Singleton.php

IoC Singleton class.

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

Public methods

public static void getSingletonInstance()

public static void instance()

Create a new instance of this singleton.

Protected methods

protected void __construct()

Constructor.

protected static void getSingletonAccessor()

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

protected void init()

Initialize the singleton free from constructor parameters.