private function createStatement()
{
if (null !== $this->statement) {
return;
}
if (null === $this->container || !$this->container->has($this->dbalServiceName)) {
throw new \RuntimeException('The container has not been injected or the database service is missing');
}
$this->statement = $this->container->get($this->dbalServiceName)->prepare('
INSERT INTO tl_log (tstamp, source, action, username, text, func, ip, browser)
VALUES (:tstamp, :source, :action, :username, :text, :func, :ip, :browser)
');
}