Doctrine\DBAL\Connection::getParams PHP Method

getParams() public method

Gets the parameters used during instantiation.
public getParams ( ) : array
return array
    public function getParams()
    {
        return $this->_params;
    }

Usage Example

コード例 #1
0
 /**
  * @throws \RuntimeException
  * @return string
  */
 public function getQuery()
 {
     $config = $this->connection->getParams();
     $driver = $config['driver'];
     if (!isset($this->configClasses[$driver])) {
         throw new \RuntimeException('Driver "%s" not found');
     }
     /** @var PdoMysql $className */
     $className = $this->configClasses[$driver];
     return $className::getPlainSql();
 }
All Usage Examples Of Doctrine\DBAL\Connection::getParams