定制 val/doctrine-table-prefix-service-provider 二次开发

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

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

val/doctrine-table-prefix-service-provider

Composer 安装命令:

composer require val/doctrine-table-prefix-service-provider

包简介

Doctrine event listener to dynamically add a table prefix.

README 文档

README

Doctrine event listener to dynamically add a table prefix.

Features

  • Add a table prefix for any configured database directly in the configuration array.
  • Framework agnostic (since it extends Pimple).

The TablePrefix code is totally taken from the documentation.

Installation

composer require val/doctrine-table-prefix-service-provider

Usage

Assuming $app is an instance of Pimple, Silex\Application or Cilex\Application.

Configuration

Single DB

<?php

$app['db.options']['prefix'] = 'prefix_';

Multiple DBs

<?php

$app['dbs.options']['first']['prefix'] = 'first_';
$app['dbs.options']['second']['prefix'] = 'second_';

Registration

Pimple

<?php

use Val\Pimple\Provider\DoctrineTablePrefixServiceProvider;

new DoctrineTablePrefixServiceProvider()->register($app);

Silex

<?php

use Val\Silex\Provider\DoctrineTablePrefixServiceProvider;

$app->register(new DoctrineTablePrefixServiceProvider());

Cilex

<?php

use Val\Cilex\Provider\DoctrineTablePrefixServiceProvider;

$app->register(new DoctrineTablePrefixServiceProvider());

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-03-31

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固