class ServiceWorker

Methods

__construct( Container $container, Factory $view, UrlGenerator $url, LoggerInterface $logger, SettingsRepositoryInterface $settings)

No description

bool
enabled()

No description

string
script()

No description

string|null
part(string $key)

An extension's script, in a function of its own.

array
parts()

No description

string
offlinePage()

No description

array
skippedPaths()

Where the admin frontend and the API live, from the paths in config.php.

string
offlinePath()

No description

Details

__construct( Container $container, Factory $view, UrlGenerator $url, LoggerInterface $logger, SettingsRepositoryInterface $settings)

Parameters

Container $container
Factory $view
UrlGenerator $url
LoggerInterface $logger
SettingsRepositoryInterface $settings

bool enabled()

Return Value

bool

string script()

Return Value

string

string|null part(string $key)

An extension's script, in a function of its own.

Parameters

string $key

Return Value

string|null

protected array parts()

Return Value

array key, like "acme-push-0" => script

string offlinePage()

Return Value

string

protected array skippedPaths()

Where the admin frontend and the API live, from the paths in config.php.

Their pages load from the network as if there were no worker.

Return Value

array

protected string offlinePath()

Return Value

string