scaffold/src/Scaffold.php
Victor Westerlund d9fca6d4e1 fix(style): trim trailing whitespaces (#12)
Remove all trailing whitespaces from source files. Looks like it was only docblocks tho, that's nice!

Reviewed-on: https://codeberg.org/vlw/scaffold/pulls/12
2025-11-30 13:48:56 +01:00

23 lines
505 B
PHP

<?php
namespace vlw\Scaffold;
use VV;
use Reflect\Path;
class Scaffold {
/**
* Include a source file
*
* @param string $pathname Relative path from project root to a source file
*/
public static function load(string $pathname): void {
// Load the Vegvisir VV class from Reflect
if (!class_exists("VV")) {
require_once Path::root("vegvisir/src/kernel/Init.php");
require_once Path::root("vegvisir/src/request/VV.php");
}
require_once VV::root($pathname);
}
}