ycw / ycw-test-bundle
dev-master
2019-03-16 09:02 UTC
Requires
- php: ^7.1.3
- symfony/framework-bundle: 4.2.*
- symfony/orm-pack: *
Conflicts
This package is auto-updated.
Last update: 2024-09-16 21:11:00 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;