diff --git a/src/Foundation/Apiato.php b/src/Foundation/Apiato.php index 66b52e23d..bce6617c1 100644 --- a/src/Foundation/Apiato.php +++ b/src/Foundation/Apiato.php @@ -61,6 +61,15 @@ public static function inferBasePath(): string }; } + /** + * Get the singleton instance of the class. + * TODO: add arch tests to make sure this method is only used in ApiatoServiceProvider + */ + public static function instance(): self + { + return self::$instance; + } + public function basePath(): string { return $this->basePath; @@ -156,13 +165,6 @@ public function withProviders(string ...$path): self return $this; } - // TODO: add arch tests to make sure this method is only used in ApiatoServiceProvider - - public static function instance(): self - { - return self::$instance; - } - public function providers(): array { $classMapper = new ClassMapGenerator();