Symfony2 を使用しています。私のアプリケーションでは、このためにいくつかのグローバル パラメータを設定する必要があります。
parameters.iniファイルでパラメーターを次のように定義しました。
#app/config/parameters.ini
[parameters]
mailer_auth_mode="login"
user_thumbnail_path="images/user/thumbnail"
次のコードを使用して、コントローラーでこれにアクセスできます。
$this->container->getParameter('user_thumbnail_path');
FOSUserBundle を使用していてオーバーライドProfileHandlerクラスがあり、このクラスでパラメーターを使用したいのですが、方法がわかりません。