/** * 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; }
/** * 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(); })); }
public function __construct(LoaderInterface $loader, $environment, $defaultPath) { parent::__construct($loader, $environment); $this->defaultPath = $defaultPath; $this->loader = $loader; $this->files = $loader->getFilesystem(); }
/** * 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); } }
public function __construct($app) { $this->app = $app; $items = (array) $app->make('config'); $items = end($items); parent::__construct($items); $this->init(); }
/** * @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(); }
/** * 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); }
/** * @param LoaderInterface $loader * @param string $env * @param array $setting */ public function __construct(LoaderInterface $loader, $env, array $setting) { parent::__construct($loader, $env); $this->setting = $setting; }
/** * 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); }
public function __construct($name, $path = 'config') { $this->name = $name; $this->path = $path; parent::__construct(Config::get($name)); }
/** * 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); }
/** * ConfigRepo constructor. * @param array $items */ public function __construct(array $items = []) { $items = app('config')->get('backuplay'); parent::__construct($items); }
/** * 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); }
public function __construct($name) { $this->name = $name; parent::__construct(Config::get($name, [])); }
/** * Constructor. * * @return void */ public function __construct(array $items = [], CacheManager $cache = null) { $this->cache = $cache; parent::__construct($items); }