jorisros / boilerplate-bundle
v1.3
2023-03-04 11:23 UTC
Requires
- php: >=8.1
- symfony/config: ^5.4|^6.0
- symfony/dependency-injection: ^5.4|^6.0
- symfony/http-kernel: ^5.4|^6.0
Requires (Dev)
- phpunit/phpunit: ^9.6|^10.0
README
这个库是一个用于在Symfony中编写新bundle的样板。
使用方法
运行以下命令将bundle添加到您的项目中。
composer require jorisros/boilerplate-bundle
要检查bundle是否正确安装,请运行以下命令。
php bin/console debug:container jorisros.service.example
结果应该看起来像
Information for Service "jorisros.service.example"
==================================================
---------------- --------------------------------------------
Option Value
---------------- --------------------------------------------
Service ID jorisros.service.example
Class JorisRos\BoilerPlateBundle\Service\Example
Tags -
Public yes
Synthetic no
Lazy no
Shared yes
Abstract no
Autowired no
Autoconfigured no
Usages none
---------------- --------------------------------------------
然后bundle成功安装。
测试
按照以下步骤运行测试
php vendor/bin/phpunit tests