Include Vegvisir source files from Reflect as a function #3

Merged
vlw merged 1 commit from refs/pull/3/head into master 2025-10-31 10:08:33 +01:00
vlw commented 2025-10-30 18:47:30 +01:00 (Migrated from codeberg.org)

I know we just merged #2 and released verison 1.1.0 where the Vegvisir/Reflect crosstalk was supposed to be a class. But after using this briefly, I feel like it gets too verbose. This function will be called a lot and therefore I think it should be pretty quick to type - just like the Vegvisir VV class.

Instead of typing

use vlw\Scaffold\Scaffold;

Scaffold::include("some/file.php");

we can instead type

use function vlw\Scaffold\load;

load("some/file.php");
I know we just merged #2 and released verison 1.1.0 where the Vegvisir/Reflect crosstalk was supposed to be a class. But after using this briefly, I feel like it gets too verbose. This function will be called _a lot_ and therefore I think it should be pretty quick to type - just like the Vegvisir `VV` class. Instead of typing ```php use vlw\Scaffold\Scaffold; Scaffold::include("some/file.php"); ``` we can instead type ```php use function vlw\Scaffold\load; load("some/file.php"); ```
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
vlw/scaffold!3
No description provided.