Author: Vincent Klaiber (hello@vinkla.com)
Ejemplo n.º 1
0
 /**
  * Get the profile registry.
  *
  * @return \Zenstruck\Backup\ProfileRegistry
  */
 protected function getRegistry()
 {
     $config = $this->config->get('backup');
     return $this->registry->make($config);
 }
Ejemplo n.º 2
0
 /**
  * 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);
 }