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 ()
public __wakeup ()
public
static
final
forgetInstance ($container = null
)
: void
Forget this singleton's instance if it exists
Property | Type | Description |
---|---|---|
$container | mixed |
mixed
|
public
static
final
instance ($container = null
)
: static
Create a new instance of this singleton.
Property | Type | Description |
---|---|---|
$container | mixed |
mixed
|
protected final __construct ()
Constructor.
protected init ()
Initialize the singleton free from constructor parameters.
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. |