-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodules.php
More file actions
30 lines (23 loc) · 1.01 KB
/
modules.php
File metadata and controls
30 lines (23 loc) · 1.01 KB
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
/**
* This is the actual modules.php file checking our very own library!
*/
/* Dependencies */
use PhpModules\Lib\Module;
use PhpModules\Lib\Modules;
$phpparser = Module::create('PhpParser');
$phpdocparser = Module::create('PHPStan\PhpDocParser');
$graph = Module::create('Fhaculty\Graph');
$graphviz = Module::create('Graphp\GraphViz');
$symfonyConsole = Module::create('Symfony\Component\Console');
$ciDetector = Module::create('OndraM\CiDetector');
$dependencies = [$phpparser, $phpdocparser, $graph, $graphviz, $symfonyConsole, $ciDetector];
/* Internal modules */
$docreader = Module::strict('PhpModules\DocReader', [$phpdocparser]);
$exceptions = Module::strict('PhpModules\Exceptions');
$lib = Module::strict('PhpModules\Lib', [$phpparser, $docreader, $exceptions]);
$cli = Module::strict('PhpModules\Cli', [$lib, $graph, $graphviz, $symfonyConsole, $ciDetector]);
$internal = [$docreader, $exceptions, $lib, $cli];
return Modules::builder(__DIR__ . '/src')
->register($dependencies)
->register($internal);