smasty/neevo-nette-ext

此包已被弃用,且不再维护。没有建议的替代包。

Neevo 扩展,用于 Nette 框架

v1.2.5 2017-10-23 14:11 UTC

This package is not auto-updated.

Last update: 2021-11-27 00:07:33 UTC


README

此包提供工具以优化 Neevo DBAL,以便在 Nette 框架应用程序中使用。它将 Neevo 注册为 DI 容器中的服务,为 DebugBar 添加一个面板显示执行的查询,并在发生 NeevoException 时,为 Bluescreen 添加一个带有 SQL 查询的面板。它还提供了一个适配器用于 Nette 缓存存储系统。

仅支持 Nette 框架 2.0 及以上版本和 PHP 5.3 及以上版本的包。

说明

  1. 将扩展添加到您的 Composer 配置中

    {
    	"require": {
    		"smasty/neevo-nette-ext": "1.*"
    	}
    }
  2. 向您的配置文件(例如 app/config/config.neon)添加新部分,并将您的 Neevo 配置放置在那里

    extensions:
    	neevo: Neevo\Nette\Extension
    
    neevo:
    	driver: MySQLi
    	username: root
    	password: ****
    	database: my_database
    
  3. 没有第三步。