我在哪里放置包括以接近正确注册?我尝试在 ATE 中同时包含命令库和关闭,并且我尝试在 ATE 中仅包含命令库,在命令库中包含关闭...无论我做什么,它都会显示未找到关闭。
类.CommandBase.php
  <?php
      abstract class CommandBase {
      // variables
      // abstract functions
      // protected function
     }
  ?>
类.Close.php
<?php
 class Close extends CommandBase
 {
    // variables
    // functions
    // public function __construct
 }
?>
类.ATE.php
<?php
class ATE {
    // instance variables
    // public properties
    public function start(){
            $command = new Close();         // class 'Close' not found
    }
    // public function __construct
 }
?>