@@ 60-67 (lines=8) @@ | ||
57 | return TransportFactory::create($container, $loop, $options[Options::TRANSPORT_OPTIONS]); |
|
58 | } |
|
59 | ||
60 | private static function createHydrator(ContainerInterface $container, array $options = []) |
|
61 | { |
|
62 | if (!isset($options[Options::HYDRATOR_OPTIONS])) { |
|
63 | throw new InvalidArgumentException('Missing Hydrator options'); |
|
64 | } |
|
65 | ||
66 | return HydratorFactory::create($container, $options[Options::HYDRATOR_OPTIONS]); |
|
67 | } |
|
68 | } |
|
69 | ||
@@ 48-58 (lines=11) @@ | ||
45 | return $container->build(); |
|
46 | } |
|
47 | ||
48 | private static function createTransport( |
|
49 | ContainerInterface $container, |
|
50 | LoopInterface $loop, |
|
51 | array $options = [] |
|
52 | ): ClientInterface { |
|
53 | if (!isset($options[Options::TRANSPORT_OPTIONS])) { |
|
54 | throw new InvalidArgumentException('Missing Transport options'); |
|
55 | } |
|
56 | ||
57 | return TransportFactory::create($container, $loop, $options[Options::TRANSPORT_OPTIONS]); |
|
58 | } |
|
59 | ||
60 | private static function createHydrator(ContainerInterface $container, array $options = []) |
|
61 | { |