zeebinz / kohana-generator

Kohana module for generating application and module resources
20 stars 6 forks source link

Call to undefined method Generator::build() when running minion gen task #2

Closed jasonmhead closed 10 years ago

jasonmhead commented 10 years ago

I get Call to undefined method Generator::build() in [base path]/modules/generator/classes/Generator/Task/Generate/Model.php on line 43 when doing ./minion generate:module --name=links

Any idea how to fix? Do I need to set a configuration option? The ./minion generate:module --help works

from another module die(print_r(get_class_methods ('Generator'))); returns Array ( [0] => rewind [1] => valid [2] => current [3] => key [4] => next [5] => send [6] => throw [7] => __wakeup ) 1

jasonmhead commented 10 years ago

did phpunit --bootstrap=modules/unittest/bootstrap.php [base path]/modules/generator/tests/Generator/BuilderTest.php and it throws Call to undefined method Generator::build() in [base path]/modules/generator/tests/Generator/BuilderTest.php on line 21

zeebinz commented 10 years ago

Sorry, I guess you have PHP 5.5, in which case the new inbuilt Generator class is the issue. This module should be rewritten to fix that, but sadly I don't maintain it or use Kohana anymore - lack of namespace support and badly chosen generic class name being what broke the implementation here.