Contao\Encryption::getInstance PHP Method

getInstance() public static method

Return the object instance (Singleton)
Deprecation: Deprecated since Contao 4.0, to be removed in Contao 5.0. The Encryption class is now static.
public static getInstance ( ) : Encryption
return Encryption
    public static function getInstance()
    {
        @trigger_error('Using Encryption::getInstance() has been deprecated and will no longer work in Contao 5.0. The Encryption class is now static.', E_USER_DEPRECATED);
        if (static::$objInstance === null) {
            static::$objInstance = new static();
        }
        return static::$objInstance;
    }