Exemplo n.º 1
0
 /**
  *
  */
 public static function initAPI()
 {
     $api = ApiController::getInstance();
     $api->Add(new \Extasy\Users\Api\ChangeEmail());
     $api->add(new \Extasy\Users\Api\GetUserInfoOperation());
     $api->add(new \Extasy\Users\Api\UpdatePasswordOperation());
     $api->add(new \Extasy\Users\Api\UpdateProfileOperation());
     $api->add(new \Extasy\Users\Api\UpdateAvatarOperation());
     $api->add(new \Extasy\Users\Api\IsLoginedOperation());
     $api->add(new \Extasy\Users\Api\RemoveAvatarOperation());
     $api->add(new \Extasy\Users\Api\IsUserExistsOperation());
     $api->add(new \Extasy\Users\Api\DeleteProfile());
     $api->add(new \Extasy\Users\Social\Api\Facebook\Registration());
     $api->add(new \Extasy\Users\Social\Api\Facebook\GetCurrentSession());
     $api->add(new \Extasy\Users\Social\Api\Facebook\Login());
     $api->add(new \Extasy\Users\Social\Api\Twitter\Registration());
     $api->add(new \Extasy\Users\Social\Api\Twitter\GetCurrentSession());
     $api->add(new \Extasy\Users\Social\Api\Twitter\Login());
     $api->add(new \Extasy\Users\Social\Api\Vkontakte\Registration());
     $api->add(new \Extasy\Users\Social\Api\Vkontakte\GetCurrentSession());
     $api->add(new \Extasy\Users\Social\Api\Vkontakte\Login());
     $api->add(new \Extasy\Users\Social\Api\Odnoklassniki\Registration());
     $api->add(new \Extasy\Users\Social\Api\Odnoklassniki\GetCurrentSession());
     $api->add(new \Extasy\Users\Social\Api\Odnoklassniki\Login());
 }
Exemplo n.º 2
0
 public static function startUp()
 {
     $api = ApiController::getInstance();
     $api->add(new AddLogRecord());
     $api->add(new EditLog());
     $api->add(new GetSettings());
     $api->add(new SetupSettings());
     $api->add(new Logs());
     $api->add(new Records());
     $api->add(new NewMessages());
     $api->add(new SetupPriority());
     $api->add(new MarkEverythingRead());
 }
Exemplo n.º 3
0
 public static function init()
 {
     $controller = ApiController::getInstance();
     $controller->add(new TestApiOperationWithParams());
 }
Exemplo n.º 4
0
 protected function initializeApis()
 {
     \EventController::addRuntimeEventListener(\Extasy\Api\ApiOperation::EventName, function () {
         $controller = \Extasy\Api\ApiController::getInstance();
         $controller->add(new \Extasy\Schedule\Api\Add());
         $controller->add(new \Extasy\Schedule\Api\Cancel());
         $controller->add(new \Extasy\Schedule\Api\Latests());
         $controller->add(new \Extasy\Schedule\Api\Restart());
         $controller->add(new \Extasy\Schedule\Api\RestartServer());
         $controller->add(new \Extasy\Schedule\Api\ServerStatus());
         $controller->add(new \Extasy\Schedule\Api\StopServer());
         $controller->add(new Search());
     });
 }