/** * Handle the command. * * @param AddonCollection $addons * @param Repository $repository */ public function handle(AddonCollection $addons, Repository $repository) { $slug = $this->stream->getSlug(); $namespace = $this->stream->getNamespace(); foreach ($addons->withConfig("streams.{$namespace}.{$slug}") as $config) { $this->stream->mergeConfig($config); } $this->stream->mergeConfig($repository->get("streams::streams.{$namespace}.{$slug}", [])); }