SimpleSAML_Auth_State::cloneState PHP 메소드

cloneState() 공개 정적인 메소드

This function clones and returns the new cloned state.
public static cloneState ( array $state ) : array
$state array The original request state.
리턴 array Cloned state data.
    public static function cloneState(array $state)
    {
        $clonedState = $state;
        if (array_key_exists(self::ID, $state)) {
            $clonedState[self::CLONE_ORIGINAL_ID] = $state[self::ID];
            unset($clonedState[self::ID]);
            SimpleSAML\Logger::debug('Cloned state: ' . var_export($state[self::ID], true));
        } else {
            SimpleSAML\Logger::debug('Cloned state with undefined id.');
        }
        return $clonedState;
    }