When we generate a service, it usually create a file only contain all of class as if, client, processor,... such as:
//Calculator.thrift
namespace php Test;
service Calculator {
i32 add(1:i32 num1, 2:i32 num2),
}
And it will generate a file:
//Calculator.php
namespace Test;
interface CalculatorIf {
public function add($num1, $num2);
}
class CalculatorClient implements \Test\CalculatorIf {
//code...
}
//other class ...
But in my case, i use Autoloading Class feature of PHP 5 (spl_autoload_register()), my framework base on name of class to (auto) include class file. So that (and problem), it don't know where it can load class file because name of class is not the same as name of file. So, I want to generate multi files with each class (be declared) in a file.