diff --git a/composer.json b/composer.json index 3d56cde..935143f 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,10 @@ "autoload": { "psr-4": { "Gigadrive\\MinecraftAvatar\\": "src/" - } + }, + "files": [ + "src/global_functions.php" + ] }, "authors": [ { diff --git a/src/global_functions.php b/src/global_functions.php new file mode 100644 index 0000000..89d4db6 --- /dev/null +++ b/src/global_functions.php @@ -0,0 +1,16 @@ + + */ + function avatar(): AbstractMinecraftAvatarGenerator { + return MinecraftAvatar::getDefaultService(); + } +} \ No newline at end of file