/** * * @return NTableSelection */ public function getTable() { // název tabulky odvodit z názvu třídy preg_match('#(\\w+)Repository$#', get_class($this), $m); $string = $m[1]; $string[0] = strtolower($string[0]); return $this->connection->table($string); }
public function createAuthenticatorService() { return new Authenticator($this->database->table('users')); }