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

Legend:

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

    r898 r899  
    4343}
    4444
    45 class Application extends System
     45class System
    4646{
     47  public Database $Database;
    4748  public string $Name;
    48   public AppModuleManager $ModuleManager;
     49  public ModuleManager $ModuleManager;
    4950  public array $Models;
    5051  public array $CommandLine;
     
    5354  function __construct()
    5455  {
    55     parent::__construct();
    56     $this->Name = 'Application';
    57     $this->ModuleManager = new AppModuleManager($this);
     56    $this->Database = new Database();
     57    $this->Name = 'System';
     58    $this->ModuleManager = new ModuleManager($this);
    5859    $this->Models = array();
    5960    $this->CommandLine = array();
     
    6364  }
    6465
    65   function GetModule(string $Name): AppModule
     66  function GetModule(string $Name): Module
    6667  {
    6768    if (array_key_exists($Name, $this->ModuleManager->Modules))
     
    8788  }
    8889
    89   function UnrgisterCommandLine(string $Name): void
     90  function UnregisterCommandLine(string $Name): void
    9091  {
    9192    unset($this->CommandLine[$Name]);
Note: See TracChangeset for help on using the changeset viewer.