ProjectScaffold
MMO\admin\helpers · 1 symbole · générée le 27 Oct 2026
ProjectScaffold
ProjectScaffold.php:22Makes an application built on the framework: mmo.admin's project/ skeleton, then its deployment files (templates/: deploy.json, .gitattributes, scripts/...) -- the very ones php scripts/admin.php init writes -- every {{placeholder}} filled (vars()).
- Espace de noms
MMO\admin\helpers
Index
| TEXT | the skeleton's files whose text is templated; anything else (an icon, a font) is copied byte for byte | |
| deploy | ||
| template | ||
| create($folder, $vars, $dryRun) | Write the project into $folder: files(), a script staying executable (git ignores a hook it cannot run). | |
| debugName() | ||
| files($vars) | Every file of the project: the skeleton's, filled, then the deployment's it does not already have. | |
| vars($options) | The placeholders of a project, from what is known of it. | |
| versions() |
Constantes1
TEXT
the skeleton's files whose text is templated; anything else (an icon, a font) is copied byte for byte
Propriétés2
deploy
- Type
- string
template
- Type
- string
Méthodes5
create($folder, $vars, $dryRun)
ProjectScaffold.php:138Write the project into $folder: files(), a script staying executable (git ignores a hook it cannot run).
debugName()
ProjectScaffold.php:32| retourne | string |
files($vars)
ProjectScaffold.php:99Every file of the project: the skeleton's, filled, then the deployment's it does not already have. A dot. prefix becomes a leading . (a template cannot ship a real .gitignore: git would apply it to the template).
vars($options)
ProjectScaffold.php:44The placeholders of a project, from what is known of it.
| $options | array | |
| retourne | array | string> {{placeholder}} => its value |
| lève | for a name, a namespace or a library that is not one |
versions()
ProjectScaffold.php:83| retourne | array | string> the major version of each library the application knows (mmo.core => 21.*), read from its manifest: a template that wrote them out would keep the majors of the day it was written |