jmikola/insecure-routes-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jmikola/insecure-routes-bundle

最新稳定版本:v3.0.1

Composer 安装命令:

composer require jmikola/insecure-routes-bundle

包简介

Removes HTTPS scheme requirements from routes in your Symfony2 app (for dev/test environments).

README 文档

README

Build Status

This bundle removes HTTPS schema requirements from all routes in your Symfony2 application, and is especially helpful if your dev or test environments are not configured with SSL and you would like to avoid maintaining a separate copy of your routing configuration with HTTPS requirements removed.

You probabably should not use this bundle in your prod environment.

Compatibility

This bundle's master branch maintains compatibility with Symfony2's master branch. The sf-2.0 branch of this bundle maintains compatibility with Symfony 2.0. You may use the following tags for this bundle:

  • 3.0.x tracks the master branch.
  • 2.0.x tracks the sf-2.0 branch.

Installation

Add JmikolaInsecureRoutesBundle to the registerBundles() method of your application kernel. Like WebProfilerBundle, this bundle should only be enabled for your dev and test environments:

# app/AppKernel.php

public function registerBundles()
{
    if (in_array($this->getEnvironment(), array('dev', 'test'))) {
        $bundles[] = new Jmikola\InsecureRoutesBundle\JmikolaInsecureRoutesBundle();
    }
}

Configuration

There are no configuration options. Symfony2 will load the bundle's dependency injection extension automatically.

The extension will create a service that composes the existing routing.loader service and assumes its service ID. Whenever a RouteCollection is loaded, any HTTPS _scheme requirements among its routes will then be removed. The filtering process is very similar to that of FrameworkBundle's DelegatingLoader, which resolves short notation for _controller defaults.

统计信息

  • 总下载量: 10.66k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 14
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 13
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2012-02-14