Skip to content

Bootable


  • Full name: \Qubus\Injector\ServiceProvider\Bootable

Methods

boot

Other services, extensions, callbacks, etc. that need to be loaded after the called provider is booted.

public boot(): void

booting

Register a booting callback to be run before the "boot" method is called.

public booting(\Closure $callback): void

Parameters:

Parameter Type Description
$callback \Closure

booted

Register a booted callback to be run after the "boot" method is called.

public booted(\Closure $callback): void

Parameters:

Parameter Type Description
$callback \Closure

publishes

Register publishable paths for this provider.

public publishes(array<string,string> $paths, string|null $group = null): void

Parameters:

Parameter Type Description
$paths array [from => tag]
$group string|null Optional tag/group name ("config", "migrations", etc.)

pathsToPublish

Get all publishable paths for this provider.

public pathsToPublish(string|null $tag = null): array<string,string>

Parameters:

Parameter Type Description
$tag string|null Restrict to a tag (e.g. "config", "migrations")

Return Value:

[from => tag]


callBootingCallbacks

Call the registered booting callbacks.

public callBootingCallbacks(): void

callBootedCallbacks

Call the registered booted callbacks.

public callBootedCallbacks(): void