Repository navigation
Expand file tree
/
Copy pathstructarmed.php
More file actions
36 lines (34 loc) · 1.59 KB
/
Copy pathstructarmed.php
File metadata and controls
36 lines (34 loc) · 1.59 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
31
32
33
34
35
36
<?php
declare(strict_types=1);
use Boundwize\StructArmed\Architecture;
return Architecture::define()
->layerPattern('Foundation', [
'/^Crustum\\\\Ignis\\\\(Contracts|Support)(\\\\.*)?$/',
])
->layerPattern('Trait', '/^Crustum\\\\Ignis\\\\Trait\\\\.*$/')
->layerPattern('Install', '/^Crustum\\\\Ignis\\\\Install(\\\\.*)?$/')
->layerPattern('Skills', '/^Crustum\\\\Ignis\\\\Skills\\\\.*$/')
->layerPattern('Rules', '/^Crustum\\\\Ignis\\\\Rules\\\\.*$/')
->layerPattern('Tinker', '/^Crustum\\\\Ignis\\\\Tinker\\\\.*$/')
->layerPattern('BrowserLog', '/^Crustum\\\\Ignis\\\\Services\\\\.*$/')
->layerPattern('Middleware', '/^Crustum\\\\Ignis\\\\Middleware\\\\.*$/')
->layerPattern('Mcp', '/^Crustum\\\\Ignis\\\\Mcp\\\\.*$/')
->layerPattern('Command', '/^Crustum\\\\Ignis\\\\Command\\\\.*$/')
->layerPattern('Controller', '/^Crustum\\\\Ignis\\\\Controller\\\\.*$/')
->layerPattern('Plugin', [
'/^Crustum\\\\Ignis\\\\(IgnisPlugin|IgnisManager|ServiceProvider)(\\\\.*)?$/',
])
->ruleset([
'Foundation' => [],
'Trait' => ['Foundation'],
'Install' => ['Foundation', 'Trait'],
'Skills' => ['Foundation'],
'Rules' => ['Foundation'],
'Tinker' => ['Foundation'],
'BrowserLog' => ['Foundation'],
'Middleware' => ['BrowserLog'],
'Mcp' => ['Install', 'Rules', 'Tinker', 'Trait', 'Foundation'],
'Command' => ['Install', 'Skills', 'Rules', 'Mcp', 'Trait', 'Foundation'],
'Controller' => ['Foundation'],
'Plugin' => ['+Command', '+Mcp', 'Middleware', 'Controller'],
]);