Class as both a Command & Controller?

I need a class that i can run from the web and from the command line. but since PHP doesn’t support multiple inheritance i’ve created a class, then created a wrapper controller class and a wrapper console command class.

Not a very elegant solution so i’m wondering if anyone else has a better idea?