wearejust / redirect-bundle
此包已被弃用,不再维护。未建议替换包。
使用重定向的小型包装器
2.0
2020-12-18 09:36 UTC
Requires
- php: >=7.0
- doctrine/doctrine-bundle: ~1.5
- symfony/framework-bundle: ~2.7|~4.0
Suggests
- sonata-project/admin-bundle: Can be easily integrated with Sonata Admin bundle
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(), ); // ... } // ... }