Version: current

# Function singleton

Creates a class instance by the "singleton" design pattern. It will always return the same instance for this class, which can be used for performance reasons and as a simple way to access instance methods which don't rely on instance data (e.g. the custom SilverStripe static handling).

Package: sapphire\core
Uses: ``Object::strong_create()``
Located at sapphire/core/Core.php

## Parameters summary

`string` | `$className` | $className

## Return value summary

``Object`` | Object

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -