Source of file Logout.php

Size: 0,544 Bytes - Last Modified: 2018-11-03T09:50:48-04:00

G:/AdobeConnectClient/src/Commands/Logout.php

1234567891011121314151617181920212223242526272829
<?php

namespace AdobeConnectClient\Commands;

use AdobeConnectClient\Command;

/**
 * Ends the session
 *
 * More info see {@link https://helpx.adobe.com/content/help/en/adobe-connect/webservices/logout.html}
 */
class Logout extends Command
{
    /**
     * @inheritdoc
     *
     * @return bool
     */
    protected function process()
    {
        $this->client->doGet([
            'action' => 'logout',
            'session' => $this->client->getSession()
        ]);
        $this->client->setSession('');
        return true;
    }
}