Skip to content

EricGrivilers/IsmaAmbrosiGeneratorBundle

 
 

Repository files navigation

IsmaAmbrosiGeneratorBundle

Build Status

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 the app 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 on the production environment.

About

Generates Symfony2 documents, forms and CRUD for MongoDB documents

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%