作者 lackoxygen

feat:config

... ... @@ -84,11 +84,16 @@ class Application
*/
protected function configure(string $app = 'default'): Option
{
$configure = \config(ServiceProvider::$name . '.' . $app, []);
$configure = \config(ServiceProvider::$name . '.' . $app);
if (is_null($configure)) {
throw new \InvalidArgumentException('Please publish the configuration file first');
}
return static::newConfigFormArray($configure);
}
/**
* Load configuration to object Option
*
... ...