| 1 | <?php |
||
| 17 | class ClientFactory { |
||
| 18 | |||
| 19 | /** |
||
| 20 | * The 'mongodb' client settings. |
||
| 21 | * |
||
| 22 | * @var string[][] |
||
| 23 | */ |
||
| 24 | protected $settings; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * A hash of connections per alias. |
||
| 28 | * |
||
| 29 | * @var \MongoDB\Client[] |
||
| 30 | */ |
||
| 31 | protected $clients; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Constructor. |
||
| 35 | * |
||
| 36 | * @param \Drupal\Core\Site\Settings $settings |
||
| 37 | * The system settings. |
||
| 38 | */ |
||
| 39 | public function __construct(Settings $settings) { |
||
| 42 | |||
| 43 | public function get($alias) { |
||
| 58 | } |
||
| 59 |