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: CHANGELOG.md
+3-2
Original file line number
Diff line number
Diff line change
@@ -18,10 +18,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
18
18
- Support for specifying example model sources ([39ff208](https://github.com/knuckleswtf/scribe/commit/39ff208085d68eed4c459768ac5a1120934f021a))
19
19
- Support for subgroups ([7cf07738](https://github.com/knuckleswtf/scribe/commit/7cf0773864fbdd1772fea9a5ff9e7ffd3360d7d2),[2ebf40b](https://github.com/knuckleswtf/scribe/commit/2ebf40b5e5be309bf5e685a0cd58bb70856b033d))
20
20
- Nested response fields are now collapsed ([00b09bb](https://github.com/knuckleswtf/scribe/commit/00b09bbea8ec64006db864bf807004d48926c6d3))
21
-
-Inlined routes (no more Scribe/Controller class)
22
-
- Changed signature of Strategy#invoke ($routeRules is now optional)
21
+
-`add_routes` now uses inline routes (no more `Scribe\Controller` class)
22
+
- Changed signature of Strategy ($routeRules is now optional,and there's now an instance var $endpointData, although it's not set by default)
23
23
- Parameter data from successive stages is now merged
24
24
- Basic support for overriding docs for inherited methods ([9735fdf](9735fdf150469f186bab395fcfabd042f570c50c))
Copy file name to clipboardexpand all lines: README.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
</p>
8
8
9
9
10
-
> [v3 is out now](https://scribe.knuckles.wtf/blog/2021/06/08/laravel-v3)!
10
+
> [v4 is out now](https://scribe.knuckles.wtf/blog/laravel-v4)!
11
11
12
12
Scribe helps you generate API documentation for humans from your Laravel/Lumen/[Dingo](https://github.com/dingo/api) codebase. See a live example at [demo.scribe.knuckles.wtf](https://demo.scribe.knuckles.wtf).
13
13
@@ -26,7 +26,7 @@ Scribe helps you generate API documentation for humans from your Laravel/Lumen/[
26
26
## Documentation
27
27
Check out the documentation at [scribe.knuckles.wtf/laravel](http://scribe.knuckles.wtf/laravel).
28
28
29
-
If you're coming from `mpociot/laravel-apidoc-generator`, there's a [migration guide](https://scribe.knuckles.wtf/laravel/migrating-apidoc).
29
+
If you're coming from `mpociot/laravel-apidoc-generator`, first [migrate to v3](http://scribe.knuckles.wtf/blog/laravel/3.x/migrating-apidoc)`, then [to v4](http://scribe.knuckles.wtf/blog/laravel/migrating-v4).
30
30
31
31
## Contributing
32
32
Contributing is easy! See our [contribution guide](https://scribe.knuckles.wtf/laravel/contributing).
$this->info(sprintf("See the full changelog at https://github.com/knuckleswtf/scribe/blob/%s/CHANGELOG.md", Globals::SCRIBE_VERSION));
62
+
return;
63
+
}
64
+
65
+
$this->upgradeToV4();
66
+
}
67
+
68
+
protectedfunctionupgradeToV4(): void
69
+
{
56
70
if ($this->confirm("Do you have any custom strategies?")) {
57
71
$this->line('1. Add a new property <info>public ?ExtractedEndpointData $endpointData;</info>.');
58
72
$this->line('2. Replace the <info>array $routeRules</info> parameter in __invoke() with <info>array $routeRules = []</info> .');
@@ -62,18 +76,10 @@ public function handle(): void
62
76
if ($this->confirm("Did you customize the Blade templates used by Scribe?")) {
63
77
$this->warn('A few minor changes were made to the templates. See the release announcement for details.');
64
78
}
65
-
$this->newLine();
66
-
67
-
$this->line("Scribe now supports PHP 8 attributes for annotations. "
68
-
. "You can use both, but we recommend switching to attributes (see the docs).");
69
-
if ($this->confirm("Would you like help in replacing your docblock tags with attributes?")) {
70
-
$this->warn('Install our Rector package knuckleswtf/scribe-rector-t2a and run it.');
71
-
}
72
-
$this->warn("For attributes to work, you need to add the attribute strategies to your config file. See the release announcement for details.");
73
79
74
80
$this->newLine();
75
81
$this->info("✔ Done.");
76
-
$this->line("See the release announcement at <href=https://scribe.knuckles.wtf/v4>http://scribe.knuckles.wtf/v4</> for the full upgrade guide!");
82
+
$this->line("See the release announcement at <href=https://scribe.knuckles.wtf/blog/laravel-v4>http://scribe.knuckles.wtf/blog/laravel-v4</> for the full upgrade guide!");
0 commit comments