- WIP on leaning lean a bit
This commit is contained in:
1 parent
4f648b47bd
commit
f3c4cbd95a
13 files changed
+41
-180
No files matched your search
+1
-17
@@ -155,26 +155,10 @@ class Lean
|
||||
return null;
|
||||
}
|
||||
|
||||
#[\Deprecated("Definitions are now loaded automatically from composer extra array.")]
|
||||
public static function definitions() : array
|
||||
{
|
||||
return [];
|
||||
|
||||
$path = dirname(__DIR__) . "/meta/definitions/";
|
||||
|
||||
return array_replace(
|
||||
require($path . "authorize.php"),
|
||||
class_exists(\Mcnd\CLI\CliMiddleware::class) ? require($path . "cli.php") : [],
|
||||
class_exists(\Cronard\CronardMiddleware::class) ? require($path . "cronard.php") : [],
|
||||
require($path . "email.php"),
|
||||
require($path . "event.php"),
|
||||
require($path . "http.php"),
|
||||
require($path . "language.php"),
|
||||
class_exists(\Negundo\Client\NegundoMiddleware::class) ? require($path . "negundo.php") : [],
|
||||
require($path . "routes.php"),
|
||||
require($path . "software.php"),
|
||||
require($path . "storage.php"),
|
||||
class_exists(\Picea\Picea::class) ? require($path . "template.php") : [],
|
||||
);
|
||||
}
|
||||
|
||||
public static function autoloadDefinitionsFromComposerExtra() : array
|
||||
|
||||
Reference in new issue
Block a user