Changeset 896 for trunk/Packages/Common


Ignore:
Timestamp:
Jan 14, 2021, 7:38:26 PM (4 years ago)
Author:
chronos
Message:
  • Fixed: Correct typecasting of System class.
Location:
trunk/Packages/Common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/Common/AppModule.php

    r895 r896  
    5353  public array $Dependencies;
    5454  public Database $Database;
    55   public Application $System;
     55  public System $System;
    5656  public AppModuleManager $Manager;
    5757  public $OnChange;
  • trunk/Packages/Common/Setup.php

    r895 r896  
    425425  function DoStart(): void
    426426  {
    427     $this->System->RegisterPage([''], 'PageSetupRedirect');
    428     $this->System->RegisterPage(['setup'], 'PageSetup');
    429     $this->System->RegisterPage(['setup', 'modules'], 'PageSetupModules');
     427    Core::Cast($this->System)->RegisterPage([''], 'PageSetupRedirect');
     428    Core::Cast($this->System)->RegisterPage(['setup'], 'PageSetup');
     429    Core::Cast($this->System)->RegisterPage(['setup', 'modules'], 'PageSetupModules');
    430430  }
    431431
     
    433433  {
    434434    unset($this->UpdateManager);
    435     $this->System->UnregisterPage(['']);
    436     $this->System->UnregisterPage(['setup']);
    437     $this->System->UnregisterPage(['setup', 'modules']);
     435    Core::Cast($this->System)->UnregisterPage(['']);
     436    Core::Cast($this->System)->UnregisterPage(['setup']);
     437    Core::Cast($this->System)->UnregisterPage(['setup', 'modules']);
    438438  }
    439439
Note: See TracChangeset for help on using the changeset viewer.