Documentation

SecurityComponent extends Injectable
in package

Table of Contents

Properties

$chargeBeeComponent  : ChargeBeeComponent
$entityManager  : EntityManager
$eventsManager  : Manager
$reloadLogin  : SecurityItem|null
$securityStorageComponent  : SecurityStorageComponent
$subscriptionsRepository  : SubscriptionsRepository
$subscriptionStatusRepository  : SubscriptionStatusRepository

Methods

__construct()  : mixed
SecurityComponent constructor.
createLoginTokenToUserAccount()  : mixed
getClientAuthorizationsByUserAccount()  : mixed
getClientAuthorizationsByUserAccountId()  : mixed
getClientsByUserAccount()  : mixed
getClientsByUserAccountId()  : mixed
getHasActiveSubscriptionByClient()  : mixed
getHasActiveSubscriptionByUserWrapper()  : bool
getHasOnlyNewSellerSubscriptions()  : mixed
getHasSubscriptionByClient()  : bool
getHasSubscriptionByUserWrapper()  : bool
getIsPremiumByClient()  : mixed
getIsPremiumByUserAccount()  : mixed
getIsPremiumByUserWrapper()  : bool
getReloadLogin()  : mixed
getSecurityItemByToken()  : ISecurityItem|null
getUserWrapperByIds()  : mixed
getUserWrapperBySecurityItem()  : UserWrapper|null
getUserWrapperByToken()  : UserWrapper|null
headerToBearerToken()  : string|null
isAccessAuthorizedByUserAccountAndClient()  : bool
isAccessAuthorizedByUserAccountIdAndClientId()  : mixed
loginByEmail()  : ISecurityItem
loginByToken()  : ISecurityItem|null
loginByUserAccount()  : mixed
logout()  : void
logoutAllByUserAccountId()  : mixed
serializeUserWrapper()  : array<string|int, mixed>|null
setReloadLogin()  : mixed
switchActiveClient()  : ISecurityItem
clientNeedsPremiumCheck()  : mixed
doPremiumCheckByUserWrapper()  : mixed
generateToken()  : string

Properties

Methods

__construct()

SecurityComponent constructor.

public __construct(SecurityStorageComponent $securityStorageComponent, EntityManager $entityManager, ChargeBeeComponent $chargeBeeComponent, Manager $eventsManager, SubscriptionsRepository $subscriptionsRepository, SubscriptionStatusRepository $subscriptionStatusRepository) : mixed
Parameters
$securityStorageComponent : SecurityStorageComponent
$entityManager : EntityManager
$chargeBeeComponent : ChargeBeeComponent
$eventsManager : Manager
$subscriptionsRepository : SubscriptionsRepository
$subscriptionStatusRepository : SubscriptionStatusRepository

getClientAuthorizationsByUserAccountId()

public getClientAuthorizationsByUserAccountId(int $userAccountId) : mixed
Parameters
$userAccountId : int

getClientsByUserAccountId()

public getClientsByUserAccountId(int $userAccountId) : mixed
Parameters
$userAccountId : int

getHasActiveSubscriptionByClient()

public getHasActiveSubscriptionByClient(Client|null $client) : mixed
Parameters
$client : Client|null

getHasSubscriptionByClient()

public getHasSubscriptionByClient(Client|null $client[, bool $includeExpired = true ]) : bool
Parameters
$client : Client|null
$includeExpired : bool = true
Return values
bool

includes cancelled/expired subscriptions by default

getHasSubscriptionByUserWrapper()

public getHasSubscriptionByUserWrapper(UserWrapper $user[, bool $includeExpired = true ]) : bool
Parameters
$user : UserWrapper
$includeExpired : bool = true
Return values
bool

includes cancelled/expired subscriptions by default

getUserWrapperByIds()

public getUserWrapperByIds(int|null $userAccountId[, int|null $clientId = null ][, int|null $prevUserAccountId = null ]) : mixed
Parameters
$userAccountId : int|null
$clientId : int|null = null
$prevUserAccountId : int|null = null

headerToBearerToken()

public headerToBearerToken(array<string|int, mixed> $headers) : string|null
Parameters
$headers : array<string|int, mixed>
Return values
string|null

isAccessAuthorizedByUserAccountIdAndClientId()

public isAccessAuthorizedByUserAccountIdAndClientId(int $userAccountId, int $clientId) : mixed
Parameters
$userAccountId : int
$clientId : int

logoutAllByUserAccountId()

public logoutAllByUserAccountId(int $userAccountId) : mixed
Parameters
$userAccountId : int

serializeUserWrapper()

public serializeUserWrapper(UserWrapper|null $userWrapper) : array<string|int, mixed>|null
Parameters
$userWrapper : UserWrapper|null
Return values
array<string|int, mixed>|null

generateToken()

private static generateToken() : string
Tags
throws
Exception
Return values
string

        
On this page

Search results