jorisros/boilerplate-bundle

安装: 2

依赖者: 0

建议者: 0

安全: 0

星星: 1

关注者: 1

分支: 0

开放问题: 0

类型:symfony-bundle

v1.3 2023-03-04 11:23 UTC

This package is auto-updated.

Last update: 2024-09-12 08:13:24 UTC


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