定制 abacaphiliac/doctrine-orm-diagnostics-module 二次开发

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

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

abacaphiliac/doctrine-orm-diagnostics-module

Composer 安装命令:

composer require abacaphiliac/doctrine-orm-diagnostics-module

包简介

Integration of doctrine/doctrine-orm-module, zendframework/zenddiagnostics, and (optionally) doctrine/migrations.

README 文档

README

Scrutinizer Code Quality Code Coverage Build Status

abacaphiliac/doctrine-orm-diagnostics-module

Integration of doctrine/doctrine-orm-module and zendframework/zenddiagnostics. Provides ZF2 Diagnostic checks of Doctrine ORM Connection(s) and Schema.

Installation

composer require abacaphiliac/doctrine-orm-diagnostics-module

Usage

Add Abacaphiliac\DoctrineORMDiagnosticsModule to your application module config.

What can I do if I don't use orm_default?

Create your own CheckConnectionFactory (a very simple factory) and override the doctrine.orm_diagnostics.connection service in your application's service_manager.factories config.

Sample Output

[vagrant@vagrant]$ php public/index.php diag -v --debug
  OK   ZF: PHP Version: Current PHP version is 5.6.5
       ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
       '5.6.5'
       ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  OK   DoctrineORMModule: Database Connection: Doctrine\DBAL\Connections\MasterSlaveConnection
       ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
       array (
         'slave' => 'connected',
         'master' => 'connected',
       )
       ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 FAIL  DoctrineORMModule: ORM Validate Schema: Doctrine\ORM\Tools\Console\Command\ValidateSchemaCommand
       ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
       array (
         0 => '[Mapping]  OK - The mapping files are correct.',
         1 => '[Database] FAIL - The database schema is not in sync with the current mapping file.',
       )
       ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 failures, 0 warnings, 2 successful checks.

Dependencies

See composer.json.

Contributing

composer update && vendor/bin/phing

This library attempts to comply with PSR-1, PSR-2, and PSR-4. If you notice compliance oversights, please send a patch via pull request.

统计信息

  • 总下载量: 49
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-06-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固