DataSift\Storyplayer\Cli\Script_Command::__construct PHP Метод

__construct() публичный Метод

public __construct ( $injectables )
    public function __construct($injectables)
    {
        parent::__construct($injectables);
        // define the command
        $this->setName('script');
        $this->setShortDescription('run an automation script');
        $this->setLongDescription("Use this command to play an automation script." . PHP_EOL);
        $this->setArgsList(array("[<script.php>]" => "run a script"));
        // the switches that this command supports
        $this->addFeature(new Feature_ConsoleSupport());
        $this->addFeature(new Feature_DeviceSupport());
        $this->addFeature(new Feature_TestEnvironmentConfigSupport());
        $this->addFeature(new Feature_SystemUnderTestConfigSupport());
        $this->addFeature(new Feature_LocalhostSupport());
        $this->addFeature(new Feature_ActiveConfigSupport());
        $this->addFeature(new Feature_DefinesSupport());
        $this->addFeature(new Feature_PhaseLoaderSupport());
        $this->addFeature(new Feature_ProseLoaderSupport());
        $this->addFeature(new Feature_TestUsersSupport());
        // now setup all of the switches that we support
        $this->addFeatureSwitches();
    }