aeyoll/arango-db-bundle

dev-master 2016-07-03 18:07 UTC

This package is auto-updated.

Last update: 2024-08-29 04:14:37 UTC


README

安装

步骤 1:下载包

打开命令行,进入你的项目目录,并执行以下命令以下载此包的最新稳定版本

$ composer require "aeyoll/arango-db-bundle": "dev-master"

此命令要求您全局安装了Composer,具体请参考Composer文档中的安装章节

步骤 2:启用包

然后,将包添加到项目app/AppKernel.php文件中注册的包列表中,以启用该包

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Aeyoll>\Bundle\ArangoDbBundle(),
        );

        // ...
    }

    // ...
}

配置

aeyoll_arango_db:
    connection:
        default:
            database: '_system'
            endpoint: 'tcp://127.0.0.1:8529'
            auth_user: 'root'
            auth_passwd: 'password'
    options:
        connection: 'Keep-Alive'
        timeout: 30
        reconnect: true
        create: true
        update_policy: 'last'