logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git

getting.ex (444B)


  1. # Pleroma: A lightweight social networking server
  2. # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
  3. # SPDX-License-Identifier: AGPL-3.0-only
  4. defmodule Pleroma.Config.Getting do
  5. @callback get(any()) :: any()
  6. @callback get(any(), any()) :: any()
  7. def get(key), do: get(key, nil)
  8. def get(key, default), do: impl().get(key, default)
  9. def impl do
  10. Application.get_env(:pleroma, :config_impl, Pleroma.Config)
  11. end
  12. end