nlzet/doctrine-mapping-typings-bundle
最新稳定版本:0.2.0
Composer 安装命令:
composer require nlzet/doctrine-mapping-typings-bundle
包简介
symfony bundle to convert doctrine entities into typescript typings
README 文档
README
About
This is a symfony bundle to integrate nlzet/doctrine-mapping-typings into your symfony project. See project for more information.
Installation
Install with composer:
composer require nlzet/doctrine-mapping-typings-bundle
Configuration
Full configuration example:
# Bundle configuration for nlzet/doctrine-mapping-typings-bundle # note: All "\" characters are already stripped from the class names. nlzet_doctrine_mapping_typings: # add regex patterns starting with a / or a partial match to exclude from the mapping. exclude_patterns: - '/[Cc]ache/' - 'DoctrineMigrations' # add key-value pairs to map a class to a different class. class_aliases: GedmoTranslatorTranslation: 'GedmoTranslation' # add key-value pairs to replace parts of the class name. # note: "\" characters are already stripped. class_replacements: Entity: '' Model: '' Bundle: '' # only output properties that are exposed through JMS Serializer Expose/Exclude and ExclusionPolicy. only_exposed: true
Usage
Commands
About command
This command will show all mapped/filtered entities and show the target typings name. All configuration options are available as command line options (when no options are passed, the bundle configuration values take precedence).
php bin/console nlzet:doctrine-typings:about
Convert command
All configuration options are available as command line options (when no options are passed, the bundle configuration values take precedence).
php bin/console nlzet:doctrine-typings:convert output/doctrine-mapping-typings.ts
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-09-30