for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Cekta\DI\Strategy;
use Psr\Container\ContainerInterface;
class Implementation extends KeyValue
{
/**
* @var ContainerInterface
*/
private $container;
public function __construct(array $values, ContainerInterface $container)
parent::__construct($values);
$this->container = $container;
}
public function get($id)
$result = parent::get($id);
if (is_string($result)) {
$result = $this->container->get($result);
return $result;