BaseCommand
extends Command
in package
This is the base command class, it extends the Symfony console command class and provides some helper methods that can be used in all commands. All commands should extend this class.
Table of Contents
Methods
- __construct() : mixed
- connection() : Database
- Returns the current database connection
Methods
__construct()
public
__construct([string|null $name = null ]) : mixed
Parameters
- $name : string|null = null
connection()
Returns the current database connection
protected
static connection([string|null $db = null ]) : Database
Parameters
- $db : string|null = null