定制 jonmldr/grumphp-doctrine-task 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jonmldr/grumphp-doctrine-task

最新稳定版本:v3.0

Composer 安装命令:

composer require jonmldr/grumphp-doctrine-task

包简介

This library provides Doctrine's schema validation in Symfony projects as a GrumPHP task.

README 文档

README

Latest Version on Packagist MIT Licensed Total Downloads PHP Version Support

This library provides Doctrine's schema validation in Symfony projects as a GrumPHP task.

Note: this task is made for Symfony projects, it uses 'bin/console' so you don't have to configure the Doctrine CLI.

Demo

demo

Installation

You can install the package via composer:

composer require --dev jonmldr/grumphp-doctrine-task

Configuration

# grumphp.yml
grumphp:
    tasks:
        doctrine_schema_validate:
            skip_mapping: false
            skip_sync: false
            triggered_by: ['php', 'xml', 'yml']
    extensions:
        - JonMldr\GrumPhpDoctrineTask\ExtensionLoader

console_path

Default: 'bin/console'

With this parameter you can set the path of the console to be used.

skip_mapping

Default: false

With this parameter you can skip the mapping validation check.

skip_sync

Default: false

With this parameter you can skip checking if the mapping is in sync with the database.

triggered_by

Default: [php, xml, yml]

This is a list of extensions that should trigger the Doctrine task.

Changelog

Version 3.0

  • Upgraded GrumPHP version to ^2.0 @erkens
  • Upgraded to new ExtensionInterface for GrumPHP 2.x @erkens
  • Changed minimum PHP version to 8.1 @erkens

Version 2.1

  • Added PHP8 support
  • Added ExtensionLoader, see Configuration. The service definition can be removed if you add the ExtensionLoader to your grumphp.yml
  • Added the console_path option

Version 2.0

  • Updated to GrumPHP 1.x
  • Required PHP version 7.3 or higher (required by GrumPHP 1.x)
  • Task is also being executed during manual run
  • Option parity with default doctrine task
  • Added Docker file for local development
  • Removed composer.lock file

Supporters

Stargazers repo roster for @jonmldr/grumphp-doctrine-task

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 90.39k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 14
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 13
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-05-12