factorial-io / phabalicious

Supports your deployments and every-day devops-tasks
http://docs.phab.io
MIT License
18 stars 3 forks source link

Better support for helper classes in Transformers #72

Closed d34dman closed 4 years ago

d34dman commented 4 years ago

The mighty Transformers could use some help and support :)

So I decided to use an abstract base class to extend the a custom transformer I was writing.

I created a transformer BlockContentTypeTransformer .

When i try to extend with a base class as such, it borks during usage, BlockContentTypeTransformer extends EntityTransformerBase

Unfortunately, EntityTransformerBase doesn't get autoloaded it seems when trying to execute phab scaffold <path-to-your-scaffold.yml>

stmh commented 4 years ago

As a quick fix add a require_once __DIR__ . '/yourclass.php' -- Getting autoload working will be tricky, as we cant just consume autoload.php of the project.

d34dman commented 4 years ago

Thanks for the latest fixes :) This is no longer an issue.