src/ServiceBus/Internal/WrapTokenManager.php
private function _sweepExpiredTokens()
    {
        foreach ($this->_activeTokens as $scopeUri => $activeToken) {
            $currentDateTime = new \DateTime('now');
            if ($activeToken->getExpirationDateTime() < $currentDateTime) {
                unset($this->_activeTokens[$scopeUri]);
            }
        }
    }
private function _sweepExpiredTokens()
    {
        foreach ($this->_activeTokens as $scopeUri => $activeToken) {
            $currentDateTime = new \DateTime('now');
            if ($activeToken->getExpirationDateTime() < $currentDateTime) {
                unset($this->_activeTokens[$scopeUri]);
            }
        }
    }
private function _sweepExpiredTokens ( ) { foreach ( $ this -> _activeTokens as $ scopeUri => $ activeToken ) { $ currentDateTime = new \ DateTime ( 'now' ) ; if ( $ activeToken -> getExpirationDateTime ( ) < $ currentDateTime ) { unset ( $ this -> _activeTokens [ $ scopeUri ] ) ; } } }
Removes the expired WRAP access tokens.
Removes the expired WRAP access tokens .