playframework/playframework

[doc] Document how to access configuration (Application, Configuration etc)

オープン

#6,358 opened on 2016/07/27

 (3 件のコメント) (0 件のリアクション) (0 人の担当者)Scala (4,032 件のフォーク)batch import
help wantedtopic:documentation

Repository metrics

Stars
 (12,623 個のスター)
PR merge metrics
 (平均マージ 10d 17h) (30d で 69 merged PRs)

説明

In trying to answer a question for someone, I was looking for docs on how to access the configuration, and correct me if I'm wrong, but I can't find anywhere in the Play docs that put it simply that you need to inject the configuration object. I think it would be of value to add a page to the "Application Settings" section:

https://www.playframework.com/documentation/2.5.x/JavaApplication

That said this is how to access configuration, this is how to access the classloader (environment), etc.

コントリビューターガイド