Handles the keyword 'new' with a variable number of 'new' objects assigned at runtime. Allows for the handling to be consistent and re-used but the object types to change. This is similar to the following commands:

$oApp = new cliApplication('example', 'A simple example.');
$oRequest = cliRequest::getInstance()->setApplication($oApp);
        new cliCommandNew(
            $oRequest, new cliCommandChain(
                    // your commands that create "new" things


public __construct($inRequest, [$inCommandChain = null])

Creates the new command

public execute()

Executes the new command, directing to a the appropriate command

Inherited Methods

<  1  >