瀏覽代碼

Deprecate postman.auth for postman.overrides

shalvah 4 年之前
父節點
當前提交
8bf75189dc
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      src/Writing/PostmanCollectionWriter.php

+ 5 - 1
src/Writing/PostmanCollectionWriter.php

@@ -42,6 +42,10 @@ class PostmanCollectionWriter
         $this->protocol = Str::startsWith($baseUrl, 'https') ? 'https' : 'http';
         $this->protocol = Str::startsWith($baseUrl, 'https') ? 'https' : 'http';
         $this->baseUrl = $this->getBaseUrl($baseUrl);
         $this->baseUrl = $this->getBaseUrl($baseUrl);
         $this->auth = config('scribe.postman.auth');
         $this->auth = config('scribe.postman.auth');
+
+        if ($this->auth) {
+            c::deprecated('the `postman.auth` config key', 'the `postman.overrides` feature');
+        }
     }
     }
 
 
     public function generatePostmanCollection()
     public function generatePostmanCollection()
@@ -49,7 +53,7 @@ class PostmanCollectionWriter
         $description = config('scribe.postman.description', '');
         $description = config('scribe.postman.description', '');
 
 
         if ($description) {
         if ($description) {
-            c::deprecated('the config key postman.description', 'description');
+            c::deprecated('the `postman.description` config key', 'the `description` key');
         } else {
         } else {
             $description = config('scribe.description', '');
             $description = config('scribe.description', '');
         }
         }