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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:47:38+00:00 2026-06-10T02:47:38+00:00

In Symfony 2 i have a yml file like this: my_application: application: name: Hello

  • 0

In Symfony 2 i have a yml file like this:

my_application:
  application:
      name: "Hello World"
      version: { major: 1, minor: 0, build: 4, stage: BETA }

If i want to fetch Hello World -for example- i use this command:

echo $container->getParameter('my_application.application.name');

Prints:

"Hello World"

Now, what if i want to get the whole application? Within inside of arrays?

print_r($container->getParameter('my_application.application'));

Gives me an error:

ParameterNotFoundException: You have requested a non-existent parameter "my_application.application".

But it exist. All i want to do is fetch the whole node. As array.

Is it possible, if yes, how? If no, why again?

– Obviously, symfony tells me that this is not a single parameter but a bag (maybe) but how can i fetch it as array? –

  • 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-10T02:47:40+00:00Added an answer on June 10, 2026 at 2:47 am

    yes – because it maps config into flat structure. You can see exactly how data is stored in that way:

    var_dump($container->parameters)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this setup in my symfony application: # settings.yml prod: .settings: no_script_name: true
I have a symfony 1.4 application with an admin backend, and I would like
I have updated my symfony version to 2.0.12 version. But I have this error
I have set up some custom symfony project-level settings in the file config/project.yml following
I have a symfony 1.4 project with the single application frontend . This application
In a Symfony project, I have the following php code inside a YML file.
I have a symfony application (version 1.4). I want to see index page of
I have a test suite for phpunit for my symfony application. In that test
A quick question about saving data in symfony 2. I have this method (just
I have the following in my config.yml services: my.user_provider: class: Acme\MySecurityBundle\Security\UserProvider but would like

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.