for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Jaxon\Container\Traits;
use Jaxon\Utils\Config\Config;
use Jaxon\Utils\Config\Reader;
trait ConfigTrait
{
/**
* Register the values into the container
*
* @return void
*/
private function registerConfigs()
$this->set(Config::class, function($c) {
set()
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
$this->/** @scrutinizer ignore-call */
set(Config::class, function($c) {
return new Config($c->g('jaxon.core.options'));
});
$this->set(Reader::class, function($c) {
return new Reader($c->g(Config::class));
}
* Get the config manager
* @return Config
public function getConfig()
return $this->g(Config::class);
g()
return $this->/** @scrutinizer ignore-call */ g(Config::class);
* Get the config reader
* @return Reader
public function getConfigReader()
return $this->g(Reader::class);
* Create a new the config manager
* @param array $aOptions The options array
* @param string $sKeys The keys of the options in the array
* @return Config The config manager
public function newConfig(array $aOptions = [], $sKeys = '')
return new Config($aOptions, $sKeys);