We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f69842f commit 56cc43fCopy full SHA for 56cc43f
src/Web/Documentation/SymlinkDocumentationCommand.php
@@ -18,10 +18,11 @@ public function __construct(
18
) {}
19
20
#[ConsoleCommand('docs:symlink')]
21
- public function __invoke(string $path = '../tempest-framework'): ExitCode
+ public function __invoke(string $path = '../tempest-framework', ?Version $version = null): ExitCode
22
{
23
+ $version ??= Version::default();
24
$from = root_path($path, '/docs');
- $to = root_path('src/Web/Documentation/content/', Version::default()->getUrlSegment());
25
+ $to = root_path('src/Web/Documentation/content/', $version->getUrlSegment());
26
27
$this->console->header('Symlinking documentation');
28
0 commit comments