-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
module.php
25 lines (19 loc) · 755 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-fan-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\FanChart\Module;
// Register our required namespaces
$loader = new ClassLoader();
$loader->addPsr4('MagicSunday\\Webtrees\\ModuleBase\\', __DIR__ . '/vendor/magicsunday/webtrees-module-base/src');
$loader->addPsr4('MagicSunday\\Webtrees\\FanChart\\', __DIR__ . '/src');
$loader->register();
// Create and return instance of the module
return Registry::container()->get(Module::class);