Ejemplo n.º 1
0
 public function testFetchesTheDefaultConfigurationIfNoneHasBeenSet()
 {
     $this->assertEquals(require __DIR__ . '/../../../../config/config.default.php', $this->command->getConfig());
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function __construct()
 {
     parent::__construct('add-public-key');
     $this->setDescription('Add a public key')->setHelp('Add a public key to the configured access control adapter')->addArgument('publicKey', InputArgument::REQUIRED, 'What should be the name of this public key?')->addArgument('privateKey', InputArgument::OPTIONAL, 'What should be the private key for this public key?');
 }