⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.77
Server IP:
13.127.59.50
Server:
Linux ip-172-31-46-210 5.15.0-1033-aws #37~20.04.1-Ubuntu SMP Fri Mar 17 11:39:30 UTC 2023 x86_64
Server Software:
Apache/2.4.41 (Ubuntu)
PHP Version:
7.4.3-4ubuntu2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
ecommerce_pg
/
vendor
/
league
/
flysystem
/
src
/
View File Name :
Config.php
<?php namespace League\Flysystem; class Config { /** * @var array */ protected $settings = []; /** * @var Config|null */ protected $fallback; /** * Constructor. * * @param array $settings */ public function __construct(array $settings = []) { $this->settings = $settings; } /** * Get a setting. * * @param string $key * @param mixed $default * * @return mixed config setting or default when not found */ public function get($key, $default = null) { if ( ! array_key_exists($key, $this->settings)) { return $this->getDefault($key, $default); } return $this->settings[$key]; } /** * Check if an item exists by key. * * @param string $key * * @return bool */ public function has($key) { if (array_key_exists($key, $this->settings)) { return true; } return $this->fallback instanceof Config ? $this->fallback->has($key) : false; } /** * Try to retrieve a default setting from a config fallback. * * @param string $key * @param mixed $default * * @return mixed config setting or default when not found */ protected function getDefault($key, $default) { if ( ! $this->fallback) { return $default; } return $this->fallback->get($key, $default); } /** * Set a setting. * * @param string $key * @param mixed $value * * @return $this */ public function set($key, $value) { $this->settings[$key] = $value; return $this; } /** * Set the fallback. * * @param Config $fallback * * @return $this */ public function setFallback(Config $fallback) { $this->fallback = $fallback; return $this; } }