在Symfony2的早期开发时,请关闭防火墙? [英] Turn off firewall when developing in early stages with Symfony2?

查看:218
本文介绍了在Symfony2的早期开发时,请关闭防火墙?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

教程我使用symfony的认证/授权架构开发一个Web应用程序。

Following this tutorial i'm developing a web application using symfony authentication/authorization architecture.

在设计整体结构(路线,页和安全级别)我是卡住后:我怎么能发展自己的页面没有输入凭据所有的时间?有没有什么办法来禁用或关闭整个防火墙功能?我应该用数据灯具?

After designing the whole structure (routes, pages and security levels) i'm stuck: how can i develop my pages without enter credentials all the time? Is there any way to disable or turn off the entire firewall functionality? Should i use data fixtures?

推荐答案

在你的应用程序/配置/ security.yml 文件,在防火墙配置选项添加或修改开发 ...

In your app/config/security.yml file, under the firewalls config option add or modify the dev...

firewalls:
    dev:
        pattern:  ^/
        security: false

这篇关于在Symfony2的早期开发时,请关闭防火墙?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆