.changes:
  • Added commands for creating classes using the command line
    • xf-make:entity
      • Arguments:
        • Class
      • Options:
        • -f (--finder) create finder class
        • -r (--repository) create repository class
    • xf-make:finder
      • Arguments:
        • Class
    • xf-make:repo (xf-make:repository)
      • Arguments:
        • Class
    • xf-make:job
      • Arguments:
        • Class
    • xf-make:command (xf-make:cli, xf-make:cli-command)
      • Arguments:
        • Class
        • Command name
  • Added cli file for convenience using the command line
    Now you can execute the commands in this way: php cli xf-addon:create instead php cmd.php xf-addon:create
An example of using make-commands:
php cli xf-make:entity -f -r BS\ACPE:Test

Return
Code:
Class BS\ACPE\Entity\Test successfully written along path {xfpath}\src\addons\BS\ACPE\Entity\Test.php
Class BS\ACPE\Finder\Test successfully written along path {xfpath}\src\addons\BS\ACPE\Finder\Test.php
Class BS\ACPE\Repository\Test successfully written along path {xfpath}\src\addons\BS\ACPE\Repository\Test.php

php cli xf-make:entity BS\ACPE:Test

Return
Code:
Class BS\ACPE\Entity\Test successfully written along path {xfpath}\src\addons\BS\ACPE\Entity\Test.php
  • Like
Reactions: Masetrix
Top