src/Db/Connection.php
public function createCommand($sql = null, $params = [])
    {
        return $this->db->createCommand($sql, $params, $this);
    }
public function createCommand($sql = null, $params = [])
    {
        return $this->db->createCommand($sql, $params, $this);
    }
Create DB command
@param string|null $sql
@param array       $params
@return CommandInterface