for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Ray\Di;
use Ray\Di\Di\Set;
final class ProviderProvider implements ProviderInterface
{
/** @var InjectorInterface */
private $injector;
private $interface;
/** @var Set */
private $set;
public function __construct(InjectorInterface $injector, Set $set)
$this->injector = $injector;
$this->set = $set;
}
public function get()
return $this->injector->getInstance($this->set->interface, $this->set->name);