public function getQuery(InputInterface $input) { $sql = $input->getRawCommand(); if (substr($sql, -1) !== ';') { throw new \InvalidArgumentException('Queries must be terminated with ";"'); } return substr($sql, 0, -1); }
public function getQuery(InputInterface $input) { $sql = $input->getRawCommand(); if (substr($sql, -1) !== ';') { throw new \InvalidArgumentException('Queries must be terminated with ";"'); } return substr($sql, 0, -1); }