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 6749885
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:44:36+00:00 2026-05-26T12:44:36+00:00

Im new in symfony2 framework and i don’t know how to store application settings

  • 0

Im new in symfony2 framework and i don’t know how to store application settings correctly.

What i want:

  • Store my application settings in database (need for admin-center)
  • With caching this setting in the symfony cache system (app/cache/dev|prod)
  • and then get values easy

Is it possible?

  • 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-05-26T12:44:37+00:00Added an answer on May 26, 2026 at 12:44 pm

    You can implement your own resource class implementing the ResourceInterface and also implement your own loader class implementing the LoaderInterface.

    Your loader must load your parameters into a configured ContainerBuilder as the FileLoader and others from the same namespace do.

    Once you are done, you can overwrite the getContainerLoader method of your application Kernel in order to add your loader to the existing ones :

    protected function getContainerLoader(ContainerInterface $container)
    {
        $locator = new FileLocator($this);
        $resolver = new LoaderResolver(array(
            new XmlFileLoader($container, $locator),
            new YamlFileLoader($container, $locator),
            new IniFileLoader($container, $locator),
            new PhpFileLoader($container, $locator),
            new ClosureLoader($container),
            new DatabaseLoader($container),
    
        ));
    
        return new DelegatingLoader($resolver);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to symfony,I want to create a application using Symfony framework using
I'm new in symfony2 , I don't know how to write a below query
I'm using Symfony2 Framework, and I want to update an entity with data from
I am new to symfony2 and and now i have installed Sonata Admin bundle.
I'm using the symfony2 framework and I want to use the PHP's DateTime class
i am trying to setup a new symfony framework project on ubuntu by following
I'm new to Symfony2 (with knowledge in 1.2-1.4) and having little trouble trying to
I use FOSCommentBundle with Symfony2 and when I save a new comment it redirect
I want to upload a text file received via AJAX request in Symfony2 (using
I'm currently working on an open source bundle for Symfony2, and really want it

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.