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'); }
public function performAction() { AuthService::getInstance()->signOut(); Router::redirect($this->io->makeAnchor(Index::createState())); }