Автор: Vincent Klaiber (hello@vinkla.com)
 /**
  * Create a new profile builder.
  *
  * @param array $config
  *
  * @return \Zenstruck\Backup\ProfileBuilder
  */
 protected function createBuilder(array $config)
 {
     return $this->builder->make($config);
 }
Пример #2
0
 /**
  * Register the profile builder class.
  *
  * @return void
  */
 protected function registerProfileBuilder()
 {
     $this->app->singleton('backup.builder', function (Container $app) {
         $config = $app['config']['backup'];
         $factory = new ProfileBuilderFactory($app);
         return $factory->make($config);
     });
     $this->app->alias('backup.builder', ProfileBuilder::class);
 }