original_string: public function setupCommand() {
  		$serverPublicKeyString = Files::getFileContents('resource://Flowpack.SingleSignOn.DemoInstance/Private/Fixtures/DemoServer.pub', FILE_TEXT);
  		if ($serverPublicKeyString === FALSE) {
  			$this->outputLine('Could not open resource://Flowpack.SingleSignOn.DemoInstance/Private/Fixtures/DemoServer.pub, exiting.');
  			$this->quit(1);
  		}
  
  		$serverPublicKeyFingerprint = $this->rsaWalletService->registerPublicKeyFromString($serverPublicKeyString);
  		$this->outputLine('Registered sso demo server public key');
  
  		$clientPrivateKeyString = Files::getFileContents('resource://Flowpack.SingleSignOn.DemoInstance/Private/Fixtures/DemoClient.key', FILE_TEXT);
  		if ($clientPrivateKeyString === FALSE) {
  			$this->outputLine('Could not open resource://Flowpack.SingleSignOn.DemoInstance/Private/Fixtures/DemoClient.key, exiting.');
  			$this->quit(2);
  		}
  
  		$clientPublicKeyFingerprint = $this->rsaWalletService->registerKeyPairFromPrivateKeyString($clientPrivateKeyString);
  		$this->outputLine('Registered demo client key pair');
  
  		$globalSettings = $this->yamlSource->load(FLOW_PATH_CONFIGURATION . '/Settings');
  		$globalSettings['Flowpack']['SingleSignOn']['Client']['client']['publicKeyFingerprint'] = $clientPublicKeyFingerprint;
  		$globalSettings['Flowpack']['SingleSignOn']['Client']['server']['DemoServer']['publicKeyFingerprint'] = $serverPublicKeyFingerprint;
  		$this->yamlSource->save(FLOW_PATH_CONFIGURATION . '/Settings', $globalSettings);
  		$this->outputLine('Updated settings');
  	}
code: public function setupCommand() {
  		$serverPublicKeyString = Files::getFileContents('resource://Flowpack.SingleSignOn.DemoInstance/Private/Fixtures/DemoServer.pub', FILE_TEXT);
  		if ($serverPublicKeyString === FALSE) {
  			$this->outputLine('Could not open resource://Flowpack.SingleSignOn.DemoInstance/Private/Fixtures/DemoServer.pub, exiting.');
  			$this->quit(1);
  		}
  
  		$serverPublicKeyFingerprint = $this->rsaWalletService->registerPublicKeyFromString($serverPublicKeyString);
  		$this->outputLine('Registered sso demo server public key');
  
  		$clientPrivateKeyString = Files::getFileContents('resource://Flowpack.SingleSignOn.DemoInstance/Private/Fixtures/DemoClient.key', FILE_TEXT);
  		if ($clientPrivateKeyString === FALSE) {
  			$this->outputLine('Could not open resource://Flowpack.SingleSignOn.DemoInstance/Private/Fixtures/DemoClient.key, exiting.');
  			$this->quit(2);
  		}
  
  		$clientPublicKeyFingerprint = $this->rsaWalletService->registerKeyPairFromPrivateKeyString($clientPrivateKeyString);
  		$this->outputLine('Registered demo client key pair');
  
  		$globalSettings = $this->yamlSource->load(FLOW_PATH_CONFIGURATION . '/Settings');
  		$globalSettings['Flowpack']['SingleSignOn']['Client']['client']['publicKeyFingerprint'] = $clientPublicKeyFingerprint;
  		$globalSettings['Flowpack']['SingleSignOn']['Client']['server']['DemoServer']['publicKeyFingerprint'] = $serverPublicKeyFingerprint;
  		$this->yamlSource->save(FLOW_PATH_CONFIGURATION . '/Settings', $globalSettings);
  		$this->outputLine('Updated settings');
  	}
code_tokens: public function setupCommand ( ) { $ serverPublicKeyString = Files :: getFileContents ( 'resource://Flowpack.SingleSignOn.DemoInstance/Private/Fixtures/DemoServer.pub' , FILE_TEXT ) ; if ( $ serverPublicKeyString === FALSE ) { $ this -> outputLine ( 'Could not open resource://Flowpack.SingleSignOn.DemoInstance/Private/Fixtures/DemoServer.pub, exiting.' ) ; $ this -> quit ( 1 ) ; } $ serverPublicKeyFingerprint = $ this -> rsaWalletService -> registerPublicKeyFromString ( $ serverPublicKeyString ) ; $ this -> outputLine ( 'Registered sso demo server public key' ) ; $ clientPrivateKeyString = Files :: getFileContents ( 'resource://Flowpack.SingleSignOn.DemoInstance/Private/Fixtures/DemoClient.key' , FILE_TEXT ) ; if ( $ clientPrivateKeyString === FALSE ) { $ this -> outputLine ( 'Could not open resource://Flowpack.SingleSignOn.DemoInstance/Private/Fixtures/DemoClient.key, exiting.' ) ; $ this -> quit ( 2 ) ; } $ clientPublicKeyFingerprint = $ this -> rsaWalletService -> registerKeyPairFromPrivateKeyString ( $ clientPrivateKeyString ) ; $ this -> outputLine ( 'Registered demo client key pair' ) ; $ globalSettings = $ this -> yamlSource -> load ( FLOW_PATH_CONFIGURATION . '/Settings' ) ; $ globalSettings [ 'Flowpack' ] [ 'SingleSignOn' ] [ 'Client' ] [ 'client' ] [ 'publicKeyFingerprint' ] = $ clientPublicKeyFingerprint ; $ globalSettings [ 'Flowpack' ] [ 'SingleSignOn' ] [ 'Client' ] [ 'server' ] [ 'DemoServer' ] [ 'publicKeyFingerprint' ] = $ serverPublicKeyFingerprint ; $ this -> yamlSource -> save ( FLOW_PATH_CONFIGURATION . '/Settings' , $ globalSettings ) ; $ this -> outputLine ( 'Updated settings' ) ; }
docstring: Set up the SSO demo instance
  
  This commands sets a up a single sign-on demo instance with some initial
  fixture data. It overwrites existing data in the database.
  
  ONLY FOR DEMO PURPOSES - DO NOT USE IN PRODUCTION!
docstring_tokens: Set up the SSO demo instance