Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8812141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:32:16+00:00 2026-06-14T03:32:16+00:00

I placed some custom configs in my config_prod.yml file like this: store: plugins: installed:

  • 0

I placed some custom configs in my config_prod.yml file like this:

store:
  plugins:
    installed: [abc]

Since SF2 will load and compile and cache, the config_prod.yml is actually loaded just once only. I wonder (without the need to do some custom coding to use setParameter to set my custom config values to the container, or to use my own method of caching the custom configs), how do I access these custom config values? Are they automatically cached and made available somehow?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T03:32:17+00:00Added an answer on June 14, 2026 at 3:32 am

    Everything you define in the parameters section will be accessible as a parameter:

    parameters:
        store:
            plugins:
                installed: [abc]
    

    You can access your configuration by calling getParameter() on the container:

    $store = $container->getParameter('store');
    

    If you want to have your own section in the configuration file:

    store:
        plugins:
            installed: [abc]
    

    you’ll have to create an extension and expose a semantic configuration of your bundle.

    In both cases container with all its configuration is compiled and stored in cache.

    Read more:

    • Service Container Parameters
    • How to expose a Semantic Configuration for a bundle
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Due to some limitations on the place files are being placed, I would like
I already created a custom map and placed some markers but the embedded code
I have developed this custom ImageView class to override some of the default behavior
I have some custom binaries that I would like to include in a custom
I am working on activecollab custom module, so have some problem in css file
I've a webview which is placed inside a custom table view cell, since dynamic
I have some custom .h files placed under /usr/include, but in a directory (/usr/include/itsmag1c),
The situation is, I once placed some conceptually related codes into one package in
I have got 5 user controls placed in some Control folder, at run time
I have a scene and an object placed in some coordinates. I can transform

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.