CreateService
extends BaseCommand
in package
For Creating a new service in the services directory by running `pionia gen:service {name}`
Tags
Table of Contents
Properties
- $description : string
- $name : string
- $title : string
Methods
- __construct() : mixed
- configure() : void
- connection() : Database
- Returns the current database connection
- execute() : int
Properties
$description
protected
static string
$description
= 'Adds a new service to pionia app. Services are the main business logic of the application.'
$name
protected
static string
$name
= 'gen:service'
$title
protected
static string
$title
= 'Adds a new service'
Methods
__construct()
public
__construct([string|null $name = null ]) : mixed
Parameters
- $name : string|null = null
configure()
protected
configure() : void
connection()
Returns the current database connection
protected
static connection([string|null $db = null ]) : Database
Parameters
- $db : string|null = null
Tags
Return values
Databaseexecute()
protected
execute(InputInterface $input, OutputInterface $output) : int
Parameters
- $input : InputInterface
- $output : OutputInterface