コード例 #1
0
ファイル: CliTool.php プロジェクト: xiaoix/wtf
 /**
  * @param Definition $definition
  * @param \stdClass|static $commandDefinitions
  */
 static function setUpCommands(Definition $definition, $commandDefinitions)
 {
     $commandDefinitions->addUser = AddUser::definition();
     $commandDefinitions->listUsers = ListUsers::definition();
     $commandDefinitions->fetchStats = FetchStats::definition();
     $commandDefinitions->showStats = ShowStats::definition();
     $commandDefinitions->migrate = Migrate::definition();
 }
コード例 #2
0
ファイル: WebApp.php プロジェクト: xiaoix/wtf
 /**
  * @param Definition $definition
  * @param \stdClass|static $commandDefinitions
  */
 static function setUpCommands(Definition $definition, $commandDefinitions)
 {
     $commandDefinitions->show = ShowStats::definition();
 }