wearejust/redirect-bundle

此包已被弃用,不再维护。未建议替换包。

使用重定向的小型包装器

安装次数: 1,261

依赖项: 0

建议者: 0

安全性: 0

星标: 1

关注者: 2

分支: 1

开放问题: 0

类型:symfony-bundle

2.0 2020-12-18 09:36 UTC

This package is auto-updated.

Last update: 2023-03-19 22:20:09 UTC


README

用于在Symfony中使用重定向的小型包装器

安装

步骤 1:下载包

打开命令行控制台,进入您的项目目录,并执行以下命令以下载此包的最新稳定版本

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

此命令要求您全局安装了Composer,如Composer文档中的安装章节中所述。

步骤 2:启用包

然后,通过将其添加到项目中的app/AppKernel.php文件中注册的包列表中来启用此包。

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new Wearejust\RedirectBundle\WearejustRedirectBundle(),
        );

        // ...
    }

    // ...
}