class ServiceProvider extends Provider (View source)

Properties

protected Application $app from  Provider
protected Application $cli
protected bool $installed
protected string[] $commands

Commands that are always available

protected string[] $installedCommands

Commands that only get added when concrete5 is installed

protected string[] $migrationCommands

The commands used for migration. These get an extra MigrationConfiguration object

Methods

__construct(Application $app)

No description

from  Provider
register()

Registers the services provided by this provider.

provides()

No description

from  Provider
setupDefaultCommands()

No description

setupDoctrineCommands()

No description

null|Command
add($param, $requireInstall = false, callable $callback = null)

Add a class to the CLI application

bool
installed()

Determine if the app is currently installed

getMigrationConfiguration()

No description

Details

__construct(Application $app)

No description

Parameters

Application $app

register()

Registers the services provided by this provider.

provides()

No description

protected setupDefaultCommands()

No description

setupDoctrineCommands()

No description

private null|Command add($param, $requireInstall = false, callable $callback = null)

Add a class to the CLI application

Parameters

$param
$requireInstall
callable $callback

Return Value

null|Command

private bool installed()

Determine if the app is currently installed

Return Value

bool

private Configuration|mixed getMigrationConfiguration()

No description

Return Value

Configuration|mixed