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
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;
34 public function getModulesLoadStatus(): array
36 return $this->modules
;