class EmpirePluginGenerator extends Generator

Class EmpirePluginGenerator - creates new plugin structure and all containing files

Methods

__construct(Filesystem $filesystem)

EmpirePluginGenerator constructor.

generate(string $namespace, string $plugin, string $dir, string $format, bool $structure)

Create new plugin structure and all containing files

setSkeletonDirs(array $skeletonDirs)

Sets an array of directories to look for templates.

Details

at line 27
__construct(Filesystem $filesystem)

EmpirePluginGenerator constructor.

Parameters

Filesystem $filesystem

at line 40
generate(string $namespace, string $plugin, string $dir, string $format, bool $structure)

Create new plugin structure and all containing files

Parameters

string $namespace
string $plugin
string $dir
string $format
bool $structure

at line 91
setSkeletonDirs(array $skeletonDirs)

Sets an array of directories to look for templates.

The directories must be sorted from the most specific to the most directory.

Parameters

array $skeletonDirs An array of skeleton dirs