示例#1
0
 static function setUpDefinition(Definition $definition, $options)
 {
     $definition->title = 'Traveler\'s blog';
     $options->action = Command\Option::create(Command\EnumActions::create()->addToEnum(Index::definition(), '')->addToEnum(AlbumCommand::definition(), 'album')->addToEnum(Auth::definition()))->setIsUnnamed()->setDescription('Application action');
 }
示例#2
0
 public function performAction()
 {
     AuthService::getInstance()->signOut();
     Router::redirect($this->io->makeAnchor(Index::createState()));
 }