class ApiServiceProvider extends Provider (View source)

Constants

KEY_PRIVATE

KEY_PUBLIC

Properties

protected Application $app from  Provider
private $keyPair

Methods

__construct(Application $app)

No description

from  Provider
register()

Register API related stuff

provides()

No description

from  Provider
repositoryFactory($factoryClass, $entityClass)

No description

repositoryFor($class)

No description

string[]
getKeyPair()

Generate new RSA keys if needed

string|null
getKey($handle)

Get a key by handle

registerAuthorizationServer()

Register the authorization and authentication server classes

Details

__construct(Application $app)

No description

Parameters

Application $app

register()

Register API related stuff

provides()

No description

private repositoryFactory($factoryClass, $entityClass)

No description

Parameters

$factoryClass
$entityClass

private repositoryFor($class)

No description

Parameters

$class

private string[] getKeyPair()

Generate new RSA keys if needed

Return Value

string[]

['privatekey' => '...', 'publickey' => '...']

private string|null getKey($handle)

Get a key by handle

Parameters

$handle

privatekey | publickey

Return Value

string|null

protected registerAuthorizationServer()

Register the authorization and authentication server classes