/** * Get the profile registry. * * @return \Zenstruck\Backup\ProfileRegistry */ protected function getRegistry() { $config = $this->config->get('backup'); return $this->registry->make($config); }
/** * Register the profile registry class. * * @return void */ protected function registerProfileRegistry() { $this->app->singleton('backup.registry', function (Container $app) { $config = $app['config']['backup']; $builder = $app['backup.builder']; $factory = new ProfileRegistryFactory($builder); return $factory->make($config); }); $this->app->alias('backup.registry', ProfileRegistry::class); }