comensee / IsmaAmbrosiGeneratorBundle

Generates Symfony2 documents, forms and CRUD for MongoDB documents

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IsmaAmbrosiGeneratorBundle Build Status

Latest Stable Version Total Downloads

This bundle extends the commands provided by SensioGeneratorBundle, adding a MongoDB document generator and CRUD generators for those MongoDB documents.

Installation

Add the bundle to your project.

Add the requirement to composer:

$ php composer.phar require ismaambrosi/generator-bundle:dev-master

You will also need to install the DoctrineMongoDBBundle. The instructions on how to install it are available in the Symfony2 documentation.

Enable the bundle in your kernel

<?php
// app/AppKernel.php

public function registerBundles()
{
    // ...
    if (in_array($this->getEnvironment(), array('dev', 'test'))) {
        // ...
        $bundles[] = new IsmaAmbrosi\Bundle\GeneratorBundle\IsmaAmbrosiGeneratorBundle();
    }
}

It is recommended to disable this bundle for the production environment.

About

Generates Symfony2 documents, forms and CRUD for MongoDB documents

License:MIT License


Languages

Language:PHP 100.0%