ycw/ycw-test-bundle

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:symfony-bundle

dev-master 2019-03-16 09:02 UTC

This package is auto-updated.

Last update: 2024-04-16 20:15:17 UTC


README

开发配置

第一步:克隆项目http://git.cqxiaokang.local/yuchangwei/ycw-test-bundle.git到框架的根目录下,命名为ycw-test-bundle;

第二步:在composer.json中添加以下配置:

    "autoload": {
        "psr-4": {
        "Ycw\\TestBundle\\": "src/"
        }
    },
    "autoload-dev": {
        "psr-4": {
          "Ycw\\TestBundle\\Tests\\": "Tests/"
    }

然后更新composer的自动加载代码:

    composer update nothing

第三步:在/config/bundles.php添加以下代码:

    Ycw\TestBundle\YcwTestBundle::class => ['all' => true],

第四步:在/config/routes/目录中添加文件ycw_test.yaml

ycw_test.yaml 路由如下:

    ycw_test:
      prefix: /
      resource: '@YcwTestBundle/Resources/config/routing.yaml'

配置完成,执行命令bin/console debug:route查看路由设置3;