for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sylius\Behat\MultiContainerExtension;
/**
* @author Kamil Kokot <[email protected]>
final class ContextRegistry
{
* @var array
private $registry;
* @param string $serviceId
* @param string $serviceClass
public function add($serviceId, $serviceClass)
$this->registry[$serviceId] = $serviceClass;
}
* @return string
* @throws \InvalidArgumentException
public function getClass($serviceId)
if (!isset($this->registry[$serviceId])) {
throw new \InvalidArgumentException();
return $this->registry[$serviceId];