-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstructarmed.php
More file actions
30 lines (28 loc) · 1.29 KB
/
Copy pathstructarmed.php
File metadata and controls
30 lines (28 loc) · 1.29 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
declare(strict_types=1);
use Boundwize\StructArmed\Architecture;
return Architecture::define()
->layerPattern('Foundation', [
'/^Crustum\\\\Meta\\\\(Enums|Exceptions)(\\\\.*)?$/',
])
->layerPattern('Tags', '/^Crustum\\\\Meta\\\\Tags(\\\\.*)?$/')
->layerPattern('Rendering', '/^Crustum\\\\Meta\\\\Rendering(\\\\.*)?$/')
->layerPattern('Schema', '/^Crustum\\\\Meta\\\\Schema(\\\\.*)?$/')
->layerPattern('Trait', '/^Crustum\\\\Meta\\\\Trait\\\\.*$/')
->layerPattern('Routing', '/^Crustum\\\\Meta\\\\Routing\\\\.*$/')
->layerPattern('View', '/^Crustum\\\\Meta\\\\View\\\\.*$/')
->layerPattern('Facades', [
'/^Crustum\\\\Meta\\\\(HeadManager|HeadBuilder|HeadData|CurrentHead|ErrorPages|ContainerRegistry|TagRegistry|SchemaType)$/',
])
->layerPattern('Plugin', '/^Crustum\\\\Meta\\\\MetaPlugin$/')
->ruleset([
'Foundation' => [],
'Tags' => ['Foundation'],
'Rendering' => ['Tags', 'Foundation'],
'Schema' => ['Foundation'],
'Trait' => ['Tags', 'Foundation'],
'Routing' => ['Facades'],
'View' => ['Schema', 'Tags', 'Rendering', 'Facades', 'Trait', 'Foundation'],
'Facades' => ['Tags', 'Schema', 'Rendering', 'Trait', 'Routing', 'Foundation'],
'Plugin' => ['+Facades', 'View'],
]);