for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
/**
* @author : Korotkov Danila <[email protected]>
* @copyright Copyright (c) 2017, Korotkov Danila
* @license http://www.gnu.org/licenses/gpl.html GNU GPLv3.0
*/
namespace Rudra;
* Class ContainerConfigTrait
*
* @package Rudra
trait ContainerConfigTrait
{
* @var array
protected $config = [];
* @param string $key
* @param string|null $subKey
* @return array|mixed
public function config(string $key, string $subKey = null)
return ($subKey === null) ? $this->config[$key] : $this->config[$key][$subKey];
}
* @param array $config
public function setConfig(array $config)
$this->config = $config;