You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: config/reference.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1649,7 +1649,8 @@
1649
1649
* dev_packages?: bool|Param, // Default: false
1650
1650
* },
1651
1651
* metadata?: array{
1652
-
* mirror_vcs_repositories?: bool|Param, // Fetch mirrored packages from their VCS repositories by default when possible. // Default: false
1652
+
* default_fetch_strategy?: value-of<\CodedMonkey\Dirigent\Entity\PackageFetchStrategy>|\CodedMonkey\Dirigent\Entity\PackageFetchStrategy|Param, // Available values are "mirror" (default, fetch from the mirror), "source" (fetch from the VCS source) and "vcs" (fetch complete VCS repository) // Default: "mirror"
1653
+
* mirror_vcs_repositories?: bool|Param, // Deprecated: The node "mirror_vcs_repositories" at path "dirigent.metadata.mirror_vcs_repositories" is deprecated. Use the "default_fetch_strategy" option instead. // Fetch mirrored packages from their VCS repositories by default when possible. // Default: false
@@ -91,9 +92,19 @@ private function addMetadataSection(ArrayNodeDefinition|NodeDefinition $rootNode
91
92
->arrayNode('metadata')
92
93
->addDefaultsIfNotSet()
93
94
->children()
95
+
->enumNode('default_fetch_strategy')
96
+
->enumFqcn(PackageFetchStrategy::class)
97
+
->defaultValue(PackageFetchStrategy::Mirror)
98
+
->info('Available values are "mirror" (default, fetch from the mirror), "source" (fetch from the VCS source) and "vcs" (fetch complete VCS repository)')
99
+
->end()
94
100
->booleanNode('mirror_vcs_repositories')
95
101
->defaultFalse()
96
102
->info('Fetch mirrored packages from their VCS repositories by default when possible.')
103
+
->setDeprecated(
104
+
package: 'codedmonkey/dirigent',
105
+
version: '0.8.0',
106
+
message: 'The node "%node%" at path "%path%" is deprecated. Use the "default_fetch_strategy" option instead.',
0 commit comments