\RoboFile
This is project's console commands configuration for Robo task runner.
Synopsis
class RoboFile
extends Tasks
{
- // constants
- const REFINE_IT_CONFIG_PATH = './RefineIt/config/';
- const CODE_FOLDER_PATH = '../code/';
- const MODULE_BASE_PATH = './';
- const SOURCE_MODULE_PATH = './RefineIt/';
- const IPB_INFO_FILE = './.ipb-info.json';
- // methods
- public void __construct()
- private void copyDir()
- private string generateFile()
- private string slugify()
- private string getLoadModulesString()
- public void begin()
- public void moduleCreate()
- public void modelCreate()
- public void controllerCreate()
- public void pluginCreate()
Hierarchy
Extends
- Robo\Tasks
Uses
- Robo\Task\Base\loadShortcuts
Constants
| Name | Value |
|---|---|
| REFINE_IT_CONFIG_PATH | './RefineIt/config/' |
| CODE_FOLDER_PATH | '../code/' |
| MODULE_BASE_PATH | './' |
| SOURCE_MODULE_PATH | './RefineIt/' |
| IPB_INFO_FILE | './.ipb-info.json' |
Members
private
- $config
—
array
Holder of configuration required for this class to function. - $env
—
\Twig\Environment
Code templates environments, - $loader
—
\Twig\Loader\FilesystemLoader
Code templates loader.
Methods
private
- copyDir() — Duplicates source module in destination.
- generateFile() — Checks file existance before generating new file.
- getLoadModulesString() — Generates string containing all the mdoules.
- slugify() — Generates plugin main filename based on plugin name.
public
- __construct() — Constructor.
- begin() — Asks for basic info about the plugin.
- controllerCreate() — Creates new controller inside given module.
- modelCreate() — Creates new model inside given module.
- moduleCreate() — Generates new module.
- pluginCreate() — Creates plugin main file.