Doctrine\DBAL\Connection::getParams PHP 메소드

getParams() 공개 메소드

Gets the parameters used during instantiation.
public getParams ( ) : array
리턴 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