diff --git a/app/Providers/YamlServiceProvider.php b/app/Providers/YamlServiceProvider.php new file mode 100644 index 0000000..73bf757 --- /dev/null +++ b/app/Providers/YamlServiceProvider.php @@ -0,0 +1,34 @@ +app->singleton(Yaml::class, static function($app) { + return new Yaml(); + }); + } + + /** + * Get the services provided by this provider. + * + * @return string[] + */ + public function provides() + { + return [Yaml::class]; + } +} diff --git a/app/Util/Yaml.php b/app/Util/Yaml.php new file mode 100644 index 0000000..ced0294 --- /dev/null +++ b/app/Util/Yaml.php @@ -0,0 +1,9 @@ +