eva/dto-creator

dev-main 2023-10-18 13:05 UTC

This package is auto-updated.

Last update: 2024-09-29 23:11:41 UTC


README

php ./bin/console app:dto-creator --sourcePath='config/packages/dto' --baseNamespace='App' --baseDir='src'

已创建 dto

schema_example.yaml

- namespace: App\Dto
  class: MyDto
  properties:
    propertyInt: int
    propertyString: string
    propertyArray: array

baseNamespace 选项将 App 转换为 baseDir (src),因此目标文件路径将为 src/Dto/MyDto.php