private function MongoDbSessionHandler::getCollection

Return a "MongoCollection" instance

Return value

\MongoCollection

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Storage/Handler/MongoDbSessionHandler.php, line 155

Class

MongoDbSessionHandler
MongoDB session handler

Namespace

Symfony\Component\HttpFoundation\Session\Storage\Handler

Code

private function getCollection() {
  if (null === $this->collection) {
    $this->collection = $this->mongo
      ->selectCollection($this->options['database'], $this->options['collection']);
  }
  return $this->collection;
}