import(ConsoleProviders::class); $this->import(DatabasesProviders::class); $this->import(ServerProviders::class); } /** * @param string $service * @return $this * @throws */ public function import(string $service) { if (!class_exists($service)) { throw new NotFindClassException($service); } $class = Snowflake::createObject($service); if (method_exists($class, 'onImport')) { $class->onImport($this); } return $this; } /** * @throws */ public function start() { $manager = Snowflake::get()->server; $manager->start(); } /** * @param $className * @param null $abstracts * @return mixed * @throws Exception */ public function make($className, $abstracts = null) { return make($className, $abstracts); } }