Ignore:
Timestamp:
Feb 17, 2021, 12:30:23 PM (3 years ago)
Author:
chronos
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/API/API.php

    r894 r899  
    1515*/
    1616
    17 class ModuleAPI extends AppModule
     17class ModuleAPI extends Module
    1818{
    1919  function __construct(System $System)
     
    2323    $this->Version = '1.0';
    2424    $this->Creator = 'Chronos';
    25     $this->License = 'GNU/GPL';
     25    $this->License = 'GNU/GPLv3';
    2626    $this->Description = 'Remote API for support of other clients';
    27     $this->Dependencies = array('User');
     27    $this->Dependencies = array(ModuleUser::GetName());
     28    $this->Models = array(APIToken::GetClassName());
    2829  }
    2930
     
    3233    $this->System->RegisterPage(['api'], 'PageAPI');
    3334  }
    34 
    35   function GetModels(): array
    36   {
    37     return array(APIToken::GetClassName());
    38   }
    3935}
    4036
    4137class ApiToken extends Model
    4238{
    43   static function GetDesc(): ModelDesc
     39  static function GetModelDesc(): ModelDesc
    4440  {
    4541    $Desc = new ModelDesc(self::GetClassName());
Note: See TracChangeset for help on using the changeset viewer.