예제 #1
0
 /**
  * Create a new BrowserController instance.
  *
  * @param DiskRepositoryInterface   $disks
  * @param FileRepositoryInterface   $files
  * @param FolderRepositoryInterface $folders
  */
 function __construct(DiskRepositoryInterface $disks, FileRepositoryInterface $files, FolderRepositoryInterface $folders)
 {
     parent::__construct();
     $this->disks = $disks;
     $this->files = $files;
     $this->folders = $folders;
 }
 /**
  * Create a new EntryController instance.
  *
  * @param AddonCollection           $addons
  * @param Authorizer                $authorizer
  * @param StreamRepositoryInterface $streams
  * @param EntryRepositoryInterface  $repository
  */
 public function __construct(AddonCollection $addons, Authorizer $authorizer, StreamRepositoryInterface $streams, EntryRepositoryInterface $repository)
 {
     parent::__construct();
     $this->addons = $addons;
     $this->streams = $streams;
     $this->authorizer = $authorizer;
     $this->repository = $repository;
 }
 public function __construct(SettingRepositoryInterface $settings, MessageBag $bag)
 {
     $this->baseUrl = $settings->get('bloveless.module.migrator::base_url');
     $this->disk = $settings->get('bloveless.module.migrator::disk');
     if (empty($this->baseUrl) || empty($this->disk)) {
         $bag->error("The base url and disk are required for this module to function. Set them in \"Settings\"");
     }
     parent::__construct();
 }
 public function __construct(SettingRepositoryInterface $settings)
 {
     $this->baseUrl = $settings->get('bloveless.module.migrator::base_url');
     parent::__construct();
 }