當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Repository::__construct方法代碼示例

本文整理匯總了PHP中Illuminate\Config\Repository::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP Repository::__construct方法的具體用法?PHP Repository::__construct怎麽用?PHP Repository::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Illuminate\Config\Repository的用法示例。


在下文中一共展示了Repository::__construct方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 /**
  * Create a new configuration repository.
  *
  * @param \Laradic\Config\Loaders\LoaderInterface $loader
  * @param \Illuminate\Filesystem\Filesystem       $files
  * @param  string                                 $environment
  */
 public function __construct(LoaderInterface $loader, Filesystem $files, $environment)
 {
     parent::__construct();
     $this->setLoader($loader);
     $this->files = $files;
     $this->environment = $environment;
 }
開發者ID:laradic,項目名稱:config,代碼行數:14,代碼來源:Repository.php

示例2: __construct

 /**
  * Settings constructor.
  *
  * @param CacheRepository $cache
  * @param Manager         $manager
  */
 public function __construct(CacheRepository $cache, Manager $manager)
 {
     $this->cache = $cache;
     parent::__construct($this->cache->rememberForever(self::CACHE_KEY, function () use($manager) {
         return Entities\Settings::all()->pluck('value', 'name')->all();
     }));
 }
開發者ID:rabbitcms,項目名稱:settings,代碼行數:13,代碼來源:Repository.php

示例3: __construct

 public function __construct(LoaderInterface $loader, $environment, $defaultPath)
 {
     parent::__construct($loader, $environment);
     $this->defaultPath = $defaultPath;
     $this->loader = $loader;
     $this->files = $loader->getFilesystem();
 }
開發者ID:Rotron,項目名稱:shop,代碼行數:7,代碼來源:Writer.php

示例4: __construct

 /**
  * Initialize the config repository and load files.
  *
  * @param Loader $loader
  */
 public function __construct(Loader $loader)
 {
     parent::__construct();
     $files = $loader->getFiles();
     foreach ($files as $key => $path) {
         $this->set($key, require $path);
     }
 }
開發者ID:loshmis,項目名稱:simple-config,代碼行數:13,代碼來源:Config.php

示例5: __construct

 public function __construct($app)
 {
     $this->app = $app;
     $items = (array) $app->make('config');
     $items = end($items);
     parent::__construct($items);
     $this->init();
 }
開發者ID:microweber,項目名稱:microweber,代碼行數:8,代碼來源:ConfigSave.php

示例6:

 /**
  * @param Finder $finder
  * @param $configRoot
  * @param null $envPath
  */
 function __construct(Finder $finder, $configRoot, $envPath = null)
 {
     $this->isLoaded = false;
     $this->finder = $finder;
     $this->configRoot = $configRoot;
     $this->envPath = $envPath;
     parent::__construct();
 }
開發者ID:fureszpeter,項目名稱:laratools,代碼行數:13,代碼來源:Config.php

示例7: __construct

 /**
  * Create a new configuration repository.
  *
  * @param LoaderInterface $loader
  * @param SaverInterface  $saver
  * @param                 $environment
  */
 public function __construct(LoaderInterface $loader, SaverInterface $saver, $environment)
 {
     $this->saver = $saver;
     parent::__construct($loader, $environment);
 }
開發者ID:ppiedaderawnet,項目名稱:concrete5,代碼行數:12,代碼來源:Repository.php

示例8: __construct

 /**
  * @param LoaderInterface $loader
  * @param string $env
  * @param array $setting
  */
 public function __construct(LoaderInterface $loader, $env, array $setting)
 {
     parent::__construct($loader, $env);
     $this->setting = $setting;
 }
開發者ID:the-hasanov,項目名稱:larfing,代碼行數:10,代碼來源:Larfing.php

示例9: __construct

 /**
  * Create a new translator instance.
  * @param  \Illuminate\Config\LoaderInterface  $loader
  * @param  string  $environment
  * @return void
  */
 public function __construct(LoaderInterface $loader, $environment)
 {
     parent::__construct($loader, $environment);
     $appLoader = new FileLoader(new Filesystem(), app_path() . '/config');
     $this->appRepository = new IlluminateRepository($appLoader, $environment);
 }
開發者ID:tamboer,項目名稱:LaravelOctober,代碼行數:12,代碼來源:Repository.php

示例10: __construct

 public function __construct($name, $path = 'config')
 {
     $this->name = $name;
     $this->path = $path;
     parent::__construct(Config::get($name));
 }
開發者ID:mean-cj,項目名稱:config-writer,代碼行數:6,代碼來源:Repository.php

示例11: __construct

 /**
  * Create a new configuration repository.
  *
  * @param  array  $items
  * @param  FileWriter $writer
  * @return void
  */
 public function __construct($items = array(), $writer)
 {
     $this->writer = $writer;
     parent::__construct($items);
 }
開發者ID:astatroth,項目名稱:laravel-config,代碼行數:12,代碼來源:Repository.php

示例12: __construct

 /**
  * ConfigRepo constructor.
  * @param array $items
  */
 public function __construct(array $items = [])
 {
     $items = app('config')->get('backuplay');
     parent::__construct($items);
 }
開發者ID:gummibeer,項目名稱:backuplay,代碼行數:9,代碼來源:Config.php

示例13: __construct

 /**
  * Create a new configuration repository.
  *
  * @param  \Illuminate\Config\LoaderInterface  $loader
  * @param  string  $environment
  * @return void
  */
 public function __construct(LoaderInterface $loader, $environment)
 {
     $loader = new FileLoader($loader->getFilesystem(), app_path() . '/config');
     parent::__construct($loader, $environment);
 }
開發者ID:tjbp,項目名稱:saveconfig,代碼行數:12,代碼來源:SaveConfig.php

示例14: __construct

 public function __construct($name)
 {
     $this->name = $name;
     parent::__construct(Config::get($name, []));
 }
開發者ID:larapack,項目名稱:config-writer,代碼行數:5,代碼來源:Repository.php

示例15: __construct

 /**
  * Constructor.
  *
  * @return void
  */
 public function __construct(array $items = [], CacheManager $cache = null)
 {
     $this->cache = $cache;
     parent::__construct($items);
 }
開發者ID:sohailaammarocs,項目名稱:lfc,代碼行數:10,代碼來源:Repository.php


注:本文中的Illuminate\Config\Repository::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。