Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

Commit 991177c

Browse files
committed
feat: add autoloading of libraries
1 parent d2dce6a commit 991177c

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
},
3636
"autoload": {
3737
"psr-4": {
38-
"Lib\\": "lib/",
3938
"App\\": "app/",
4039
"Tests\\": "tests/",
4140
"Config\\": "config/",

public/index.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,18 @@
9999
*/
100100
// \Leaf\Database::initDb();
101101

102+
/*
103+
|--------------------------------------------------------------------------
104+
| Load custom libraries
105+
|--------------------------------------------------------------------------
106+
|
107+
| You can load your custom libraries here. If you have
108+
| anything defined in your lib folder, you can load
109+
| them here. Simply uncomment the line below.
110+
|
111+
*/
112+
// \Leaf\Core::loadLibs();
113+
102114
/*
103115
|--------------------------------------------------------------------------
104116
| Run your Leaf MVC application

0 commit comments

Comments
 (0)