class MakePoppyCommand extends Command

Make Poppy

Properties

protected string $signature

The name and signature of the console command.

protected string $description

The console command description.

protected Poppy $poppy

The poppy instance.

protected Filesystem $files

The filesystem instance.

protected array $conf

Array to store the configuration details.

Methods

__construct(Filesystem $files, Poppy $poppy)

Create a new command instance.

mixed|void
handle()

Execute the console command.

mixed
stepOne()

Step 1: Configure module manifest.

generate()

Generate the module.

generateModule()

Generate defined module folders.

optimizeModules()

Reset module cache of enabled and disabled modules.

mixed
displayHeader(string $file = '', string $level = 'info')

Pull the given stub file contents and display them on screen.

string
replacePlaceholders(string $contents)

Replace Placeholder

Details

at line 58
__construct(Filesystem $files, Poppy $poppy)

Create a new command instance.

Parameters

Filesystem $files
Poppy $poppy

at line 71
mixed|void handle()

Execute the console command.

Return Value

mixed|void

Exceptions

FileNotFoundException

at line 102
protected mixed stepOne()

Step 1: Configure module manifest.

Return Value

mixed

Exceptions

FileNotFoundException

at line 135
protected generate()

Generate the module.

at line 166
protected generateModule()

Generate defined module folders.

at line 197
protected optimizeModules()

Reset module cache of enabled and disabled modules.

at line 209
protected mixed displayHeader(string $file = '', string $level = 'info')

Pull the given stub file contents and display them on screen.

Parameters

string $file file
string $level

info type

Return Value

mixed

Exceptions

FileNotFoundException

at line 220
protected string replacePlaceholders(string $contents)

Replace Placeholder

Parameters

string $contents

Replace Content

Return Value

string