@@ -44,6 +44,9 @@ |
||
| 44 | 44 | return $engine; |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | + /** |
|
| 48 | + * @param string $serviceName |
|
| 49 | + */ |
|
| 47 | 50 | private function loadService(ServiceLocatorInterface $serviceLocator, $config, $serviceName) |
| 48 | 51 | { |
| 49 | 52 | if (!array_key_exists($serviceName, $config)) { |
@@ -9,6 +9,7 @@ discard block |
||
| 9 | 9 | |
| 10 | 10 | namespace PhpAbModule\Service; |
| 11 | 11 | |
| 12 | +use PhpAbModule\Variant\EventManagerVariant; |
|
| 12 | 13 | use PhpAb\Engine\Engine; |
| 13 | 14 | use PhpAb\Engine\EngineInterface; |
| 14 | 15 | use PhpAb\Event\DispatcherInterface; |
@@ -16,7 +17,6 @@ discard block |
||
| 16 | 17 | use PhpAb\Test\Test; |
| 17 | 18 | use PhpAb\Variant\CallbackVariant; |
| 18 | 19 | use PhpAb\Variant\SimpleVariant; |
| 19 | -use PhpAbModule\Variant\EventManagerVariant; |
|
| 20 | 20 | use RuntimeException; |
| 21 | 21 | use Zend\ServiceManager\FactoryInterface; |
| 22 | 22 | use Zend\ServiceManager\ServiceLocatorInterface; |
@@ -41,6 +41,9 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | private $priority; |
| 43 | 43 | |
| 44 | + /** |
|
| 45 | + * @param callable $callback |
|
| 46 | + */ |
|
| 44 | 47 | public function __construct(EventManagerInterface $eventManager, $identifier, $eventName, $callback, $priority) |
| 45 | 48 | { |
| 46 | 49 | $this->eventManager = $eventManager; |