-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathopenemr.bootstrap.php
30 lines (24 loc) · 1.05 KB
/
openemr.bootstrap.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
/**
* Bootstrap custom module skeleton. This file is an example custom module that can be used
* to create modules that can be utilized inside the OpenEMR system. It is NOT intended for
* production and is intended to serve as the barebone requirements you need to get started
* writing modules that can be installed and used in OpenEMR.
*
* @package OpenEMR
* @link http://www.open-emr.org
*
* @author Stephen Nielson <[email protected]>
* @copyright Copyright (c) 2021 Stephen Nielson <[email protected]>
* @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
*/
namespace OpenEMR\Modules\CustomModuleSkeleton;
/**
* @global OpenEMR\Core\ModulesClassLoader $classLoader
*/
$classLoader->registerNamespaceIfNotExists('OpenEMR\\Modules\\CustomModuleSkeleton\\', __DIR__ . DIRECTORY_SEPARATOR . 'src');
/**
* @global EventDispatcher $eventDispatcher Injected by the OpenEMR module loader;
*/
$bootstrap = new Bootstrap($eventDispatcher, $GLOBALS['kernel']);
$bootstrap->subscribeToEvents();