コード例 #1
0
ファイル: CommandTest.php プロジェクト: ASP96/imbo
 public function testFetchesTheDefaultConfigurationIfNoneHasBeenSet()
 {
     $this->assertEquals(require __DIR__ . '/../../../../config/config.default.php', $this->command->getConfig());
 }
コード例 #2
0
ファイル: AddPublicKey.php プロジェクト: imbo/imbo
 /**
  * {@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?');
 }