BBF Fallback Generator
A VSCode extension that generates BBF fallback PHP code by scanning your project's directories and creating the necessary class stubs.
Features
- Scans your project for PHP classes in the specified directories
- Identifies hook methods and creates appropriate fallback classes
- Generates a PHP file with all the necessary fallback code
- Saves the output to your workspace's .vscode folder
SETUP CONFIG VSCODE
"intelephense.environment.includePaths": [
"src/fuel/app/classes/",
"src/fuel/app/modules/",
".vscode/"
],
"search.exclude": {
"**/docker/sync/tmp/**": true,
"**/node_modules/**": true,
"**/vendor/**": true,
"**/var/**": true,
"tmp": true,
".vscode/**": true,
},
Usage
- Open the Command Palette (Cmd+Shift+P)
- Type "ALJ Generate Fallback" and select the command
- The extension will scan your project and generate the fallback code
Configuration
You can configure the extension in your VSCode settings:
bbfFallbackGenerator.bbfcoreDir : Path to the Bbfcore directory
bbfFallbackGenerator.classesDir : Path to the classes directory
bbfFallbackGenerator.outputFile : Path to the output file
Requirements
| |