You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Malio/app/Utils/Helper.php

30 lines
551 B
PHP

<?php
namespace App\Utils;
class Helper
{
public static function redirect($url)
{
}
public static function getTokenFromReq($request)
{
$params = $request->getQueryParams();
if (!isset($params['access_token'])) {
return null;
}
return $params['access_token'];
}
public static function getMuKeyFromReq($request)
{
$params = $request->getQueryParams();
if (!isset($params['key'])) {
return null;
}
return $params['key'];
}
}