We leverage PSR-4 for class overrides.
To begin, from within your project root, create the following directory structure:
bild/src/Bild/Console/Command
Create a new class that extends BaseCommand
within any of the following directories:
Frontend
Initialize
Project
Repo
Testing
Travis
VM
Run bild
from the project root and verify your command shows up.
Copy the existing class into the same directory within your project.
For instance, you wish to override the bild project:build-make-file
command.
- That file resides at
src/Bild/Console/Command/Project/BuildMakeFile.php
within theBild
repo - Copy that file to your project root within
bild/src/Bild/Console/Command/Project/BuildMakeFile.php
- Change the command within your project
- Run
bild project:build-make-file
and ensure your changes exist