for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Gacela\Framework;
use Gacela\Framework\ClassResolver\Config\ConfigResolver;
trait ConfigResolverAwareTrait
{
private ?AbstractConfig $config = null;
public function getConfig(): AbstractConfig
if ($this->config === null) {
$this->config = (new ConfigResolver())->resolve($this);
}
return $this->config;
return $this->config
null
Gacela\Framework\AbstractConfig