service/components/storages/MongoStorage.php
/**
     * Parses DSN to fetch connection data
     *
     * @return void
     */
Parses DSN to fetch connection data
@return void
Parses DSN to fetch connection data @return void
protected function parseDsn()
    {
        preg_match('/^mongodb:\/\/(.+):(.+)@([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}):(\d+)\/(.+)$/', $this->getDsn(), $matches);
        $this->username = isset($matches[1]) ? $matches[1] : null;
        $this->password = isset($matches[2]) ? $matches[2] : null;
        $this->host = isset($matches[3]) ? $matches[3] : null;
        $this->port = isset($matches[4]) ? $matches[4] : null;
        $this->database = isset($matches[5]) ? $matches[5] : null;
    }
protected function parseDsn ( ) { preg_match ( '/^mongodb:\/\/(.+):(.+)@([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}):(\d+)\/(.+)$/' , $ this -> getDsn ( ) , $ matches ) ; $ this -> username = isset ( $ matches [ 1 ] ) ? $ matches [ 1 ] : null ; $ this -> password = isset ( $ matches [ 2 ] ) ? $ matches [ 2 ] : null ; $ this -> host = isset ( $ matches [ 3 ] ) ? $ matches [ 3 ] : null ; $ this -> port = isset ( $ matches [ 4 ] ) ? $ matches [ 4 ] : null ; $ this -> database = isset ( $ matches [ 5 ] ) ? $ matches [ 5 ] : null ; }
Parses DSN to fetch connection data
 @return void
Parses DSN to fetch connection data @return void