TIC\MakeBundle\Maker\BaseMaker
Synopsis
class BaseMaker
extends AbstractMaker
{
- // members
- protected $makerName;
- protected static $description;
- protected static object $skelPath = __DIR__ . '/../Resources/skeleton/;
- protected array $dependencies = ;
- protected boolean $twig = true;
- protected boolean $test = false;
- protected boolean $over = false;
- protected boolean $ask = true;
- protected $io;
- protected $generator;
- protected $fileManager;
- // methods
- public void __construct()
- public void setFileManager()
- protected static string getMakerName()
- public static string getCommandName()
- public static string getCommandDescription()
- public void configureCommand()
- public void configureDependencies()
- public void generate()
- protected abstract void ticConfigure()
- protected abstract void ticGenerate()
- protected string fixClassName()
- protected string getRootNamespace()
- protected string getSnakeCaseName()
- protected array getVariablesFromName()
- protected array ticGenerateTemplates()
- protected void initTwigLayout()
- protected ?string ticGenerateTemplate()
- protected ?string ticGenerateClass()
- protected ?string ticGenerateController()
- protected ?string ticGenerateFormType()
- protected bool checkTargetPath()
- protected bool confirm()
- protected static array hash2list()
- protected static bool indentFile()
- protected bool summary()
Hierarchy
Extends
- Symfony\Bundle\MakerBundle\Maker\AbstractMaker
Members
protected
- $ask
- $dependencies
- $description
- $fileManager
- $generator
- $io
- $makerName
- $over
- $skelPath
- $test
- $twig
Methods
protected
- checkTargetPath()
- confirm()
- fixClassName() — Pré-traitement du nom de classe passé en argument aux commandes.
- getMakerName()
- getRootNamespace()
- getSnakeCaseName()
- getVariablesFromName()
- hash2list()
- indentFile()
- initTwigLayout() — Génération du template twig parent (si le fichier n'existe pas déjà).
- summary() — Récapitulatif des fichiers générés
- ticConfigure()
- ticGenerate()
- ticGenerateClass()
- ticGenerateController()
- ticGenerateFormType()
- ticGenerateTemplate()
- ticGenerateTemplates()
public
- __construct()
- configureCommand() — Configure the command: set description, input arguments, options, etc.
- configureDependencies() — Configure any library dependencies that your maker requires.
- generate() — Called after normal code generation: allows you to do anything.
- getCommandDescription()
- getCommandName() — Return the command name for your maker (e.g. make:controller).
- setFileManager() — Injection par call pour laisser le construct facilement surchargeable