
| Current Path : /var/www/html/store1/vendor/consolidation/config/src/Loader/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/store1/vendor/consolidation/config/src/Loader/ConfigLoader.php |
<?php
namespace Consolidation\Config\Loader;
/**
* Load configuration files.
*/
abstract class ConfigLoader implements ConfigLoaderInterface
{
/**
* @var array
*/
protected $config = [];
/**
* @var string
*/
protected $source = '';
/**
* {@inheritdoc}
*/
public function getSourceName()
{
return $this->source;
}
/**
* @param string $source
*
* @return $this
*/
protected function setSourceName($source)
{
$this->source = $source;
return $this;
}
/**
* {@inheritdoc}
*/
public function export()
{
return $this->config;
}
/**
* {@inheritdoc}
*/
public function keys()
{
return array_keys($this->config);
}
/**
* @param string $path
*
* @return $this
*/
abstract public function load($path);
}