Closed Pierozi closed 7 years ago
This PR continue the previous #6 initiate by @camael24 According the long discussions on last PR the name of class is finally Expandflexentities
Expandflexentities
Here is a example of usage :
➜ hoaDevtool ./vendor/bin/hoa devtools:Expandflexentities Usage : devtools:Expandflexentities <options> Options : -o, --output= : -d, --dry-run : No written operation -V, --verbose : Echo all information -h, --help : This help. -?, --help : This help. # Generate the Expanded classe in dry run mode (without write change in file) ➜ hoaDevtool ./vendor/bin/hoa devtools:Expandflexentities -d -o /tmp/stub.php <?php namespace Hoa { class Ustring extends \Hoa\Ustring\Ustring {} } namespace Hoa\Router { class Http extends \Hoa\Router\Http\Http {} } namespace Hoa { interface Router extends \Hoa\Router\Router {} } namespace Hoa\Router { class Exception extends \Hoa\Router\Exception\Exception {} } namespace Hoa\Realdom { class Exception extends \Hoa\Realdom\Exception\Exception {} } namespace Hoa { abstract class Realdom extends \Hoa\Realdom\Realdom {} } namespace Hoa\File { class Temporary extends \Hoa\File\Temporary\Temporary {} } namespace Hoa { abstract class File extends \Hoa\File\File {} } namespace Hoa\File { class Exception extends \Hoa\File\Exception\Exception {} } namespace Hoa\File { class Link extends \Hoa\File\Link\Link {} } namespace Hoa { class Consistency extends \Hoa\Consistency\Consistency {} } namespace Hoa { abstract class Xml extends \Hoa\Xml\Xml {} } namespace Hoa\Xml { class Exception extends \Hoa\Xml\Exception\Exception {} } namespace Hoa\Xml { interface Element extends \Hoa\Xml\Element\Element {} } namespace Hoa { class Exception extends \Hoa\Exception\Exception {} } namespace Hoa\Stream { class Wrapper extends \Hoa\Stream\Wrapper\Wrapper {} } namespace Hoa\Stream\Wrapper { interface IWrapper extends \Hoa\Stream\Wrapper\IWrapper\IWrapper {} } namespace Hoa { abstract class Stream extends \Hoa\Stream\Stream {} } namespace Hoa\Stream { abstract class Filter extends \Hoa\Stream\Filter\Filter {} } namespace Hoa { class Protocol extends \Hoa\Protocol\Protocol {} } namespace Hoa\Protocol { class Node extends \Hoa\Protocol\Node\Node {} } namespace Hoa\Math { abstract class Sampler extends \Hoa\Math\Sampler\Sampler {} } namespace Hoa\Math\Combinatorics { class Combination extends \Hoa\Math\Combinatorics\Combination\Combination {} } namespace Hoa\Math { class Exception extends \Hoa\Math\Exception\Exception {} } namespace Hoa\Praspel { abstract class AssertionChecker extends \Hoa\Praspel\AssertionChecker\AssertionChecker {} } namespace Hoa\Praspel\Iterator { class Coverage extends \Hoa\Praspel\Iterator\Coverage\Coverage {} } namespace Hoa\Praspel\Model { class Variable extends \Hoa\Praspel\Model\Variable\Variable {} } namespace Hoa\Praspel { interface Exception extends \Hoa\Praspel\Exception\Exception {} } namespace Hoa\Praspel\Exception { class Failure extends \Hoa\Praspel\Exception\Failure\Failure {} } namespace Hoa { class Praspel extends \Hoa\Praspel\Praspel {} } namespace Hoa { class Console extends \Hoa\Console\Console {} } namespace Hoa\Console\Readline { interface Autocompleter extends \Hoa\Console\Readline\Autocompleter\Autocompleter {} } namespace Hoa\Console { class Readline extends \Hoa\Console\Readline\Readline {} } namespace Hoa { class Locale extends \Hoa\Locale\Locale {} } namespace Hoa\Locale { interface Localizer extends \Hoa\Locale\Localizer\Localizer {} } namespace Hoa { abstract class Http extends \Hoa\Http\Http {} } namespace Hoa\Http { class Exception extends \Hoa\Http\Exception\Exception {} } namespace Hoa\Http { class Response extends \Hoa\Http\Response\Response {} } namespace Hoa { interface Iterator extends \Hoa\Iterator\Iterator {} } namespace Hoa\Iterator { interface Recursive extends \Hoa\Iterator\Recursive\Recursive {} } namespace Hoa { abstract class Dispatcher extends \Hoa\Dispatcher\Dispatcher {} } namespace Hoa\Xyl { abstract class Interpreter extends \Hoa\Xyl\Interpreter\Interpreter {} } namespace Hoa\Xyl\Interpreter { class Html extends \Hoa\Xyl\Interpreter\Html\Html {} } namespace Hoa\Xyl { class Data extends \Hoa\Xyl\Data\Data {} } namespace Hoa { class Xyl extends \Hoa\Xyl\Xyl {} } namespace Hoa\Xyl { interface Element extends \Hoa\Xyl\Element\Element {} } namespace Hoa\Compiler\Llk { abstract class Sampler extends \Hoa\Compiler\Llk\Sampler\Sampler {} } namespace Hoa\Compiler { abstract class Llk extends \Hoa\Compiler\Llk\Llk {} } namespace Hoa\Compiler\Llk { abstract class Rule extends \Hoa\Compiler\Llk\Rule\Rule {} } namespace Hoa\Compiler { class Exception extends \Hoa\Compiler\Exception\Exception {} } namespace Hoa { class Event extends \Hoa\Event\Event {} } namespace Hoa { abstract class Stringbuffer extends \Hoa\Stringbuffer\Stringbuffer {} }
@Hywan Done
@Pierozi Please check https://github.com/Pierozi/Devtools/pull/1. Most of the work has been done here (but not everything).
This PR continue the previous #6 initiate by @camael24 According the long discussions on last PR the name of class is finally
Expandflexentities
Here is a example of usage :