New Fixes (#7770)
[openemr.git] / src / Events / Core / ModuleLoadEvents.php
blob5aa0ac921df598f4d217c850e3a84d60e80c3812
1 <?php
3 /**
4 * Config Module.
6 * @package OpenEMR Module
7 * @link http://www.open-emr.org
8 * @author Jerry Padgett <sjpadgett@gmail.com>
9 * @copyright Copyright (c) 2024 Jerry Padgett <sjpadgett@gmail.com>
10 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
13 namespace OpenEMR\Events\Core;
15 use Symfony\Contracts\EventDispatcher\Event;
17 class ModuleLoadEvents extends Event
19 /**
20 * The modules.loaded event is dispatched after all active modules have been loaded.
21 * getters for the modules loaded and any that failed to load.
23 public const MODULES_LOADED = 'modules.loaded';
24 private array $modules;
25 public function __construct($modules, $bootstrapFailures = [])
27 $modules = array_merge($modules, $bootstrapFailures);
28 $this->modules = $modules;
31 /**
32 * @return array
34 public function getModulesLoadStatus(): array
36 return $this->modules;