jdewit/GeneratorBundle — Issue #6: syntax error in AvroBundleGenerator
Author: keymaster
Created: 2012-02-21 07:04:32+00:00
State: open

... if you're going to use class properties ($this->parameters), you don't need to pass them as a parameter. (but you may want to declare them explicitly in the class)

```
$ app/console generate:avro:bundle

Welcome to the Avro bundle generator

This command helps you generate bundles easily.

Enter the vendor name for the bundle. (ie. Application, FOS, Sensio, etc)
Bundle vendor: Core

Enter the basename of the bundle. (ie. UserBundle, CalendarBundle, etc)
Bundle basename: DefaultBundle

Choose the database driver for the bundle. (orm)
Database Driver [orm]:

You are going to generate a new bundle called CoreDefaultBundle
Do you confirm generation [yes]?

Generating bundle code:
Fatal error: Cannot re-assign $this in C:\Program Files\Zend\Apache2\htdocs\MySite\vendor\bundles\Avro\GeneratorBundle\Generator\AvroBundleGenerator.php on line 83
PHP Fatal error: Cannot re-assign $this in C:\Program Files\Zend\Apache2\htdocs\MySite\vendor\bundles\Avro\GeneratorBundle\Generator\AvroBundleGenerator.php on line 83
```