Selaa lähdekoodia

Update changelog

shalvah 4 vuotta sitten
vanhempi
commit
e58849abb4

+ 5 - 0
CHANGELOG.md

@@ -12,6 +12,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
 
 ### Removals
 
+## 2.3.0 (Sunday, 15 November 2020)
+### Changes
+- Create and bind the current request globally in ApiResource strategy so accessing `request()` works (https://github.com/knuckleswtf/scribe/commit/cb3fa1fa4c09447c65650a4ad7dff9e969f344c8)
+- Bind the form request in route in FormRequest strategy (https://github.com/knuckleswtf/scribe/commit/de67b760daf149fbfbf379531567eb89ea6ae198)
+
 ## 2.2.1 (Saturday, 14 November 2020)
 ### Fixes
 - Fixed errors with handling arrays of files (https://github.com/knuckleswtf/scribe/commit/b57eae26d048fb37833d6b47e98df47b0c5cf7b6)

+ 1 - 1
src/Extracting/Strategies/Responses/ResponseCalls.php

@@ -325,7 +325,7 @@ class ResponseCalls extends Strategy
             $kernel->terminate($request, $response);
         } else {
             // Handle the request using the Lumen application.
-            /** @var \Laravel\Lumen\Application $kernel */
+            /** @var \Laravel\Lumen\Application $app */
             $app = app();
             $app->bind('request', function () use ($request) {
                 return $request;

+ 1 - 1
src/Extracting/Strategies/Responses/UseApiResourceTags.php

@@ -131,7 +131,7 @@ class UseApiResourceTags extends Strategy
         /** @var Response $response */
         $response = $resource->toResponse(
             // Set the route properly so it works for users who have code that checks for the route.
-            $request->setRouteResolver(function () use ($request, $route) {
+            $request->setRouteResolver(function () use ($route) {
                 return $route;
             })
         );

+ 1 - 1
src/Tools/Flags.php

@@ -4,7 +4,7 @@ namespace Knuckles\Scribe\Tools;
 
 class Flags
 {
-    public const SCRIBE_VERSION = '2.2.1';
+    public const SCRIBE_VERSION = '2.3.0';
 
     public static $shouldBeVerbose = false;
 }