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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:31:12+00:00 2026-06-10T06:31:12+00:00

I have got a symfony security.yml file # app/config/security.yml security: firewalls: secured_area: pattern: ^/

  • 0

I have got a symfony security.yml file

# app/config/security.yml
security:
    firewalls:
        secured_area:
            pattern:    ^/
            anonymous: ~
            http_basic:
                realm: "Secured Demo Area"

    access_control:
        - { path: ^/admin, roles: ROLE_ADMIN }

    providers:
        in_memory:
            users:
                ryan:  { password: ryanpass, roles: 'ROLE_USER' }
                admin: { password: kitten, roles: 'ROLE_ADMIN' }

    encoders:
        Symfony\Component\Security\Core\User\User: plaintext

I wanted some eleborations concerning this file..

  1. Can I have my own firewall settings like I replace secured_area by some othername?
  2. What is the difference between pattern and path ?
  3. If I access the url “myhost/Symfony/web/app_dev.php/admin” , what is supposed to happen ?
  4. Do I need a path /admin in my controller ?
  • 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-10T06:31:14+00:00Added an answer on June 10, 2026 at 6:31 am

    Can I have my own firewall settings like I replace secured_area by some othername?

    Yes, you can have your own firewall(s).

    What is the difference between pattern and path ?

    Pattern is for firewall, path – for access control. Both are defined in the same way

    If I access the url “myhost/Symfony/web/app_dev.php/admin” , what is supposed to happen ?

    You will be redirected to login form

    Do I need a path /admin in my controller ?

    All routes that match pattern will be enriched with security token. This is not necessary to be only /admin, it can also be /admin/somepage

    I recommend you to read security chapter from Symfony2 documentation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have got the requirement to find the core file in multiple box/machine and
I have got a problem with the id generation of Symfony Widgets. (I am
I have got the following code from here to read an Excel file using
I've got Symfony 2 successfully installed and set up and have been following the
I have got a std::string like this: std::string fileName; where fileName is like /tmp/fs////js//config.js
In my Symfony2 config.yml file, I'd like to import some configs that I'd prefer
Have got an NSString *str = @12345.6789 and want to find out if there
I have got this code: function init(){ if (typeof window.jQuery !== 'function') { var
I have got a form into which information is entered, and a drop down
i have got <div><a class='link' href='index.php' data-container='target'>Load</a></div> <div class='target'></div> i need to write jquery

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.