public function getGuard() { if (!$this->guard instanceof GuardInterface) { $this->setGuard($this->getDefaultGuard($this->connection, $this->configuration)); } return $this->guard; }