定制 opifer/redirect-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

opifer/redirect-bundle

最新稳定版本:0.1.4

Composer 安装命令:

composer require opifer/redirect-bundle

包简介

Opifer Redirect Bundle

README 文档

README

Build Status

RedirectBundle

Symfony Bundle to handle dynamic page redirects. Based on the KunstmaanRedirectBundle, but refactored to require less dependencies and ease the overriding of functionality.

Installation

Add OpiferRedirectBundle to your composer.json

$ composer require opifer/redirect-bundle "~0.1"

And enable the bundle in app/AppKernel.php

public function registerBundles()
{
    $bundles = [
        // ...
        new Opifer\RedirectBundle\OpiferRedirectBundle(),
    ];
}

Add the Redirect entity

namespace AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Opifer\RedirectBundle\Model\Redirect as BaseRedirect;

/**
 * @ORM\Entity()
 * @ORM\Table(name="redirect")
 */
class Redirect extends BaseRedirect
{
    
}

And define it in your config.yml:

opifer_redirect:
    redirect:
        class: AppBundle\Entity\Redirect

Optionally add the routing for the RedirectController:

opifer_redirect:
    resource: "@OpiferContentBundle/Resources/config/routing.yml"
    prefix: /admin/redirects

Add the RedirectRouter to your chain router. For example, when you're using CMFRoutingBundle, add the opifer.redirect.redirect_router to the cmf_routing config.

cmf_routing:
    chain:
        routers_by_id:
            opifer.redirect.redirect_router: 200
            router.default: 100

Configuration reference

opifer_redirect:
    redirect:
        class: ~
        manager: opifer.redirect.redirect_manager.default
        view:
            index: OpiferRedirectBundle:Redirect:index.html.twig
            create: OpiferRedirectBundle:Redirect:create.html.twig
            edit: OpiferRedirectBundle:Redirect:edit.html.twig

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固