mini\Mini::detectProjectRoot() private

Documentation

Detect the project root directory.

Priority:

  1. MINI_ROOT environment variable (explicit override)
  2. CWD if it contains composer.json with name "fubber/mini" (dev mode)
  3. ClassLoader reflection (standard: 3 levels up from vendor/composer/)

Signature

private function detectProjectRoot(): string

Returns

string

Source

src/Mini.php:635-656