for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Archivr;
abstract class AbstractServiceFactoryContainer
{
protected $map;
/**
* @param callable[] $map
*/
public function __construct(array $map = [])
$this->map = $map;
}
* @return callable[]
public function getMap(): array
return $this->map;
public function register(string $name, callable $factoryClosure): AbstractServiceFactoryContainer
$this->map[$name] = $factoryClosure;
return $this;
public function has(string $name): bool
return isset($this->map[$name]);