Singleton

Singleton trait.

 trait Winter\Storm\Support\Traits\Singleton

Allows a simple interface for treating a class as a singleton. Usage: myObject::instance()

Methods

public __clone ()

Returns
mixed

public __wakeup ()

Returns
mixed

public static final forgetInstance ($container = null) : void

Forget this singleton's instance if it exists

Parameters
Property Description
$container
mixed
Returns
void

public static final instance ($container = null) : static

Create a new instance of this singleton.

Parameters
Property Description
$container
mixed
Returns
static

protected final __construct ()

Constructor.

Returns
mixed

protected init ()

Initialize the singleton free from constructor parameters.

Returns
mixed

Used by

Class Description
CombineAssets

Combiner class used for combining JavaScript and StyleSheet files.

ComposerManager

Composer manager

MailManager

This class manages Mail sending functions

MarkupManager

This class manages Twig functions, token parsers and filters.

MediaLibrary

Provides abstraction level for the Media Library operations.

PluginManager

Plugin manager

SettingsManager

Manages the system settings.

UpdateManager

Update manager

VersionManager

Version manager

BundleManager

Asset Bundle manager.

PackageManager

Package manager.

Cache
AuthManager

Back-end authentication manager.

NavigationManager

Manages the backend navigation.

WidgetManager

Widget manager

ComponentManager

Component manager

MediaLibrary

Provides abstraction level for the Media Library operations.

MediaViewHelper

Helper class for processing video and audio tags inserted by the Media Manager.

ThemeManager

Theme manager

Manager

Authentication manager

MemoryCache

Query memory cache class.

Copyright © 2024 Winter CMS