sed_gs_fork/route-exporter-bundle

用于导出 Symfony 路由定义的工具,支持 yml、xml 或 php 格式。

安装次数: 672

依赖者: 0

推荐者: 0

安全: 0

星标: 0

关注者: 1

分支: 8

类型:symfony-bundle

dev-master 2017-10-30 15:03 UTC

This package is not auto-updated.

Last update: 2024-09-29 04:03:31 UTC


README

此包可以帮助您将路由定义导出为 yml、xml 或 php 格式。如果您使用注解定义了路由,但想迁移到其他格式,这将很有用。(例如,要使用与注解不兼容的 Ioncube 的 PHP 编码器。)

请注意,路由将在一个文件中导出,并且在导出过程中可能会丢失一些信息(例如,前缀定义)。

Build Status SensioLabsInsight

安装

  1. 通过运行以下命令将 SedRouteExporterBundle 添加到您的 composer.json 中
$ php composer.phar require sed/route-exporter-bundle 'dev-master'
  1. 在内核中启用此包
<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Sed\RouteExporterBundle\SedRouteExporterBundle(),
    );
}

许可证

此包采用 MIT 许可证。有关完整的许可证信息,请参阅 LICENSE 文件。

关于

此包由赛格德大学软件工程系开发。

用法

要导出路由定义,请运行以下命令

$ php app/console sed:router:export --format <yaml/xml/php> --output <destination-dir>

贡献

问题和功能请求在 GitHub 问题跟踪器 中跟踪。

如果您想做出贡献,请发送带有更改的 pull request。