Contao\Encryption::getInstance PHP 메소드

getInstance() 공개 정적인 메소드

Return the object instance (Singleton)
사용 중단: Deprecated since Contao 4.0, to be removed in Contao 5.0. The Encryption class is now static.
public static getInstance ( ) : Encryption
리턴 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;
    }