AppMeta
class AppMeta implements Arrayable
Properties
| protected bool | $usesDomain |
Methods
__construct(Csp|null $csp = null, Permissions|null $permissions = null, string|null $domain = null, bool|null $prefersBorder = true, array $libraries = [])
Create application metadata.
withoutDomain()
Leave the application domain out so the host uses its default sandbox origin.
bool
usesDomain()
Determine if the application uses a domain.
prefersBorder(bool $prefersBorder = true)
Set whether the application prefers a visible border.
array
getLibraries()
Get the application libraries.
array
toArray()
Convert the application metadata to an array.
Details
at line 22
__construct(Csp|null $csp = null, Permissions|null $permissions = null, string|null $domain = null, bool|null $prefersBorder = true, array $libraries = [])
Create application metadata.
at line 34
static AppMeta
make()
Create new application metadata.
at line 52
AppMeta
permissions(Permissions $permissions)
Set the requested application permissions.
at line 62
AppMeta
domain(string $domain)
Set the application domain.
at line 73
AppMeta
withoutDomain()
Leave the application domain out so the host uses its default sandbox origin.
at line 84
bool
usesDomain()
Determine if the application uses a domain.
at line 92
AppMeta
prefersBorder(bool $prefersBorder = true)
Set whether the application prefers a visible border.
at line 102
AppMeta
libraries(Library ...$libraries)
Set the application libraries.
at line 114
array
getLibraries()
Get the application libraries.
at line 124
array
toArray()
Convert the application metadata to an array.