| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 46 | 1 | public static function createFromResolver( |
|
| 47 | Locator $locator, |
||
| 48 | Resolver $resolver, |
||
| 49 | LoopInterface $loop, |
||
| 50 | array $options = [] |
||
| 51 | ): Client { |
||
| 52 | 1 | return self::createFromBuzz( |
|
| 53 | 1 | $locator, |
|
| 54 | 1 | $loop, |
|
| 55 | 1 | (new Browser($loop, new Connector( |
|
| 56 | 1 | $loop, |
|
| 57 | [ |
||
| 58 | 1 | 'dns' => $resolver, |
|
| 59 | ] |
||
| 60 | 1 | )))->withOptions([ |
|
| 61 | 1 | 'streaming' => true, |
|
| 62 | ]), |
||
| 63 | 1 | $options |
|
| 64 | ); |
||
| 65 | } |
||
| 66 | |||
| 88 |