src/DB.php
public function execute($sql, array $parameters = array())
    {
        $this->logger->info($sql, array('parameters' => $parameters));

        try {
            $statement = $this->getPdo()->prepare($sql);
            $statement->execute($parameters);
        } catch (PDOException $exception) {
            $this->logger->error($exception->getMessage());

            throw $exception;
        }

        return $statement;
    }
public function execute($sql, array $parameters = array())
    {
        $this->logger->info($sql, array('parameters' => $parameters));

        try {
            $statement = $this->getPdo()->prepare($sql);
            $statement->execute($parameters);
        } catch (PDOException $exception) {
            $this->logger->error($exception->getMessage());

            throw $exception;
        }

        return $statement;
    }
public function execute ( $ sql , array $ parameters = array ( ) ) { $ this -> logger -> info ( $ sql , array ( 'parameters' => $ parameters ) ) ; try { $ statement = $ this -> getPdo ( ) -> prepare ( $ sql ) ; $ statement -> execute ( $ parameters ) ; } catch ( PDOException $ exception ) { $ this -> logger -> error ( $ exception -> getMessage ( ) ) ; throw $ exception ; } return $ statement ; }
Run "prepare" a statement and then execute it

@param  string $sql
@param  array  $parameters
@return \PDOStatement
Run prepare a statement and then execute it