1. Installation

First install the Sonata Admin Bundle which provides Core functionalities. The EntityAudit is an optional

まず初めにコア機能を提供している Sonata Admin Bundle をインストールしてください。 EntityAudit は オプション(任意)です。

history feature 【履歴機能】(https://github.com/simplethings/EntityAudit).

1.1. Download bundles

Add the following lines to the file deps:

[SonataDoctrineORMAdminBundle]
    git=http://github.com/sonata-project/SonataDoctrineORMAdminBundle.git
    target=/bundles/Sonata/DoctrineORMAdminBundle
    version=origin/2.0

# optional bundle
[EntityAudit]
    git=git://github.com/simplethings/EntityAudit.git
    target=/bundles/SimpleThings/EntityAudit

and run:

bin/vendors install

1.2. Configuration

Next, be sure to enable the bundles in your autoload.php and AppKernel.php files:

次に、bundleを有効化する為に autoload.php and AppKernel.phpkに記述して下さい。

<?php
// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new Sonata\DoctrineORMAdminBundle\SonataDoctrineORMAdminBundle(),
        new SimpleThings\EntityAudit\SimpleThingsEntityAuditBundle(),
        // ...
    );
}

// autoload.php
$loader->registerNamespaces(array(
    // ...
    'SimpleThings'      => __DIR__.'/../vendor/bundles',
    // ...
));

Table Of Contents

Previous topic

Doctrine ORM Admin Bundle

Next topic

2. Configuration

This Page