MMOframework
Why AI Playground Libraries Documentation Search Agency
FR EN
Index

VersionedFolder

MMO\admin\helpers · 1 symbol · generated 27 Oct 2026

class

VersionedFolder

VersionedFolder.php:16

A folder kept as a git repository of its own, every change committed as it is written: the developer layer's inbox on a server (the tickets filed there, InboxStore), apart from the application's data and from its release.

class MMO\admin\helpers\VersionedFolder
Namespace
MMO\admin\helpers
Made the first time it is written: `git init`, a `.gitignore` (what stays on the server, never cloned: the screenshots), and `receive.denyCurrentBranch updateInstead`, so that `php admin.php developer pull` can push back what it took. No git on the machine: the files are still written, unversioned, and a warning says so.
$folder = new VersionedFolder('/var/www/oviepro/dev/shared/db/developer');$folder->commit('ticket i-3f2a filed by marc', ['login' => 'marc', 'name' => 'Marc']);

Index

enabled readonly
folder readonly
ignore
commit($message, $author)Commit everything the folder holds now.
git($args)
HasGit() static
init()Make the folder, and its repository when it has none.
isRepository()
__construct($folder, $enabled)

Properties3

enabled

readonly
readonly bool $enabled
Type
bool

folder

readonly
readonly string $folder
Type
string

ignore

array $ignore = ['screenshots/', '*.lock', '*.tmp']
Type
array

Methods6

commit($message, $author)

VersionedFolder.php:54

Commit everything the folder holds now.

function commit(string $message, array $author = []): bool
$messagestring
$author = []array
returnsboolwhether a commit was made (false: nothing changed, or no git)

init()

VersionedFolder.php:36

Make the folder, and its repository when it has none.

function init(): bool
returnsboolwhether it is versioned