/** * @param BootloadManager $bootloader */ public function perform(BootloadManager $bootloader) { $grid = $this->tableHelper(['Class:', 'Module:', 'Booted:', 'Location:']); foreach ($bootloader->getClasses() as $class) { $reflection = new \ReflectionClass($class); $booted = $reflection->getConstant('BOOT') || !$reflection->isSubclassOf(Bootloader::class); $grid->addRow([$reflection->getName(), $reflection->isSubclassOf(ModuleInterface::class) ? '<info>yes</info>' : 'no', $booted ? 'yes' : '<info>no</info>', $reflection->getFileName()]); } $grid->render(); }
/** * Bootload all registered classes using BootloadManager. * * @return $this */ private function bootload() { //Bootloading all needed components and extensions $this->bootloader->bootload($this->load, $this->environment->get('CACHE_BOOTLOADERS', false) ? static::MEMORY_SECTION : null); return $this; }