Get rid of direct dependency on console command
Problem
There is no possibility to run scaffolding directly from code now as PHP file header is hard-coded into console command.
Solution
Extract it to some other place which would serve as API as well.