ServiceProvider
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
register()
Registers the services provided by this provider.
setupDoctrineCommands()
No description
setupDefaultCommands()
No description
null|Command
add(array|string|Command $param, bool $requireInstall = false, callable $callback = null)
Add a class to the CLI application.
bool
installed()
Determine if the app is currently installed.
Configuration|mixed
getMigrationConfiguration()
No description
Details
__construct(Application $app)
No description
register()
Registers the services provided by this provider.
provides()
No description
setupDoctrineCommands()
No description
protected
setupDefaultCommands()
No description
private null|Command
add(array|string|Command $param, bool $requireInstall = false, callable $callback = null)
Add a class to the CLI application.
private bool
installed()
Determine if the app is currently installed.
private Configuration|mixed
getMigrationConfiguration()
No description