setDescription( 'Generates a new run token for clients and its hash for the configuration file.' ); } protected function execute() { $runToken = sha1( mt_rand() ); $runTokenHash = sha1( $runToken ); $this->out( "New run token: $runToken" ); $this->out( "New token hash: $runTokenHash" ); } } $script = GenerateRunTokenScript::newFromContext( $swarmContext ); $script->run();