namespace Friendica\Core;
use Friendica\BaseObject;
-use Friendica\Core\Addon;
-use Friendica\Core\Config;
-use Friendica\Core\L10n;
-use Friendica\Core\Logger;
-use Friendica\Core\PConfig;
use Friendica\Database\DBA;
use Friendica\Model\User;
use Friendica\Util\DateTimeFormat;
* @param array $user Record from "user" table
*
* @return string Hashed data
+ * @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
public static function getCookieHashForUser($user)
{
/**
* @brief Set the "Friendica" cookie
*
- * @param int $time
+ * @param int $time
* @param array $user Record from "user" table
+ * @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
public static function setCookie($time, $user = [])
{
/**
* @brief Sets the provided user's authenticated session
*
- * @todo Should be moved to Friendica\Core\Session once it's created
+ * @todo Should be moved to Friendica\Core\Session once it's created
*
- * @param type $user_record
- * @param type $login_initial
- * @param type $interactive
- * @param type $login_refresh
+ * @param array $user_record
+ * @param bool $login_initial
+ * @param bool $interactive
+ * @param bool $login_refresh
+ * @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
public static function setAuthenticatedSessionForUser($user_record, $login_initial = false, $interactive = false, $login_refresh = false)
{
}
if ($login_initial) {
- Addon::callHooks('logged_in', $a->user);
+ Hook::callAll('logged_in', $a->user);
if (($a->module !== 'home') && isset($_SESSION['return_path'])) {
$a->internalRedirect($_SESSION['return_path']);