-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmodule.php
25 lines (19 loc) · 779 Bytes
/
module.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
<?php
/**
* This file is part of the package magicsunday/webtrees-descendants-chart.
*
* For the full copyright and license information, please read the
* LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
namespace MagicSunday\Webtrees;
use Composer\Autoload\ClassLoader;
use Fisharebest\Webtrees\Registry;
use MagicSunday\Webtrees\DescendantsChart\Module;
// Register our required namespaces
$loader = new ClassLoader();
$loader->addPsr4('MagicSunday\\Webtrees\\ModuleBase\\', __DIR__ . '/vendor/magicsunday/webtrees-module-base/src');
$loader->addPsr4('MagicSunday\\Webtrees\\DescendantsChart\\', __DIR__ . '/src');
$loader->register();
// Create and return instance of the module
return Registry::container()->get(Module::class);