mirror of
https://github.com/friendica/friendica
synced 2024-12-26 06:00:16 +00:00
55e54bb950
- Update documentation
30 lines
529 B
PHP
30 lines
529 B
PHP
<?php
|
|
/**
|
|
* @file src/Module/Logout.php
|
|
*/
|
|
|
|
namespace Friendica\Module;
|
|
|
|
use Friendica\BaseModule;
|
|
use Friendica\Core\Authentication;
|
|
use Friendica\Core\Hook;
|
|
use Friendica\Core\L10n;
|
|
|
|
/**
|
|
* Logout module
|
|
*
|
|
* @author Hypolite Petovan <hypolite@mrpetovan.com>
|
|
*/
|
|
class Logout extends BaseModule
|
|
{
|
|
/**
|
|
* @brief Process logout requests
|
|
*/
|
|
public static function init()
|
|
{
|
|
Hook::callAll("logging_out");
|
|
Authentication::deleteSession();
|
|
info(L10n::t('Logged out.') . EOL);
|
|
self::getApp()->internalRedirect();
|
|
}
|
|
}
|