webtown / doctrine-schema-update-bundle
禁用 doctrine:schema:update 命令。强制使用迁移方法。
1.0.1
2016-03-29 13:38 UTC
Requires
- php: ~5.5|~7.0
Requires (Dev)
- doctrine/doctrine-bundle: ~1.0
- phpunit/phpunit: 4.*
This package is not auto-updated.
Last update: 2024-09-14 19:09:23 UTC
README
本包阻止了 doctrine:schema:update
命令。
安装
通过 Composer
在 composer 中注册
"require": { // ... "webtown/doctrine-schema-update-bundle": "~1.0", // ... }, "repositories": [ { "type": "vcs", "url": "git@github.com:webtown-php/DoctrineSchemaUpdateBundle.git" } ],
$ composer update webtown/doctrine-schema-update-bundle
并在 app/AppKernel.php
中注册,在 DoctrineBundle
之后
<?php class AppKernel extends Kernel { public function registerBundles() { $bundles = array( //... new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(), //... // Afer the DoctrineBundle new Webtown\DoctrineSchemaUpdateBundle\WebtownDoctrineSchemaUpdateBundle(), //... ); } }
用法
$skeleton = new League\Skeleton(); echo $skeleton->echoPhrase('Hello, League!');
变更日志
请参阅 变更日志 了解最近的变化。
测试
$ composer test
贡献
安全性
如果您发现任何与安全性相关的问题,请通过 :author_email 发送电子邮件,而不是使用问题跟踪器。
许可证
MIT 许可证 (MIT)。请参阅 许可证文件 了解更多信息。