IntegrationService
Table of Contents
Properties
-
$cacheService
: CacheService
-
$userAllowedProvidersRepository
: UserAllowedProvidersRepository
-
$userAllowedProvidersService
: UserAllowedProvidersService
-
$userModuleRepository
: UserModuleRepository
-
$userService
: UserService
Methods
-
__construct()
: mixed
-
generateCredentials()
: ShopifyAutomatedCredential
-
getShopifyIntegrationUrl()
: string
-
handleCredential()
: array<string|int, mixed>
-
validateShopifyCallback()
: Session
__construct()
public
__construct(CacheService $cacheService, UserAllowedProvidersRepository $userAllowedProvidersRepository, UserModuleRepository $userModuleRepository, UserAllowedProvidersService $userAllowedProvidersService, UserService $userService) : mixed
Parameters
-
$cacheService
: CacheService
-
-
$userAllowedProvidersRepository
: UserAllowedProvidersRepository
-
-
$userModuleRepository
: UserModuleRepository
-
-
$userAllowedProvidersService
: UserAllowedProvidersService
-
-
$userService
: UserService
-
generateCredentials()
public
generateCredentials(UserModule $userModule, mixed $data) : ShopifyAutomatedCredential
Parameters
-
$userModule
: UserModule
-
-
$data
: mixed
-
-
throws
-
ForbiddenException
-
throws
-
PhalconFormException
getShopifyIntegrationUrl()
public
getShopifyIntegrationUrl(array<string|int, mixed> $params, int $userId, int $userModuleId) : string
Parameters
-
$params
: array<string|int, mixed>
-
-
$userId
: int
-
-
$userModuleId
: int
-
-
throws
-
CookieSetException
-
throws
-
UninitializedContextException
-
throws
-
PrivateAppException
-
throws
-
SessionStorageException
handleCredential()
public
handleCredential(UserModule $userModule, mixed $data) : array<string|int, mixed>
Parameters
-
$userModule
: UserModule
-
-
$data
: mixed
-
Return values
array<string|int, mixed>
validateShopifyCallback()
public
validateShopifyCallback(mixed $params, mixed $shopifyCookiesName, mixed $shopifyCookiesSigName) : Session
Parameters
-
$params
: mixed
-
-
$shopifyCookiesName
: mixed
-
-
$shopifyCookiesSigName
: mixed
-
-
throws
-
OAuthSessionNotFoundException
-
throws
-
UninitializedContextException
-
throws
-
PrivateAppException
-
throws
-
SessionStorageException
-
throws
-
HttpRequestException
-
throws
-
OAuthCookieNotFoundException
-
throws
-
InvalidOAuthException