Generate code similar in structure to the FOSUserBundle.
The bundle is a work in progress. The code still needs to get cleaned up a fair bit and tests still need to be made. Any help would be much appreciated!
Add the Avro
namespace to your autoloader:
<?php
// app/autoload.php
$loader->registerNamespaces(array(
// ...
'Avro' => __DIR__.'/../vendor/bundles',
));
Enable the bundle in the kernel:
<?php
// app/AppKernel.php
if (in_array($this->getEnvironment(), array('dev', 'test'))) {
...
$bundles[] = new Avro\GeneratorBundle\AvroGeneratorBundle();
}
Add to deps file
[AvroGeneratorBundle]
git=git://github.com/jdewit/AvroGeneratorBundle.git
target=bundles/Avro/GeneratorBundle
Now, run the vendors script to download the bundle:
$ php bin/vendors install
Generate a bundle with:
$ php app/console generate:avro:bundle
Generate an entity with:
$ php app/console generate:avro:entity
Generate crud with:
$ php app/console generate:avro:crud