Browse Source

fix: add php mailer namespace.

Tony Chen 4 years ago
parent
commit
8627328188
4 changed files with 49 additions and 58 deletions
  1. 2 1
      .gitignore
  2. 0 11
      .idea/csapi.iml
  3. 0 4
      .idea/php.xml
  4. 47 42
      composer.json

+ 2 - 1
.gitignore

@@ -1,3 +1,4 @@
 /runtime/*
-/.idea/*
+.idea/*
+.idea
 

+ 0 - 11
.idea/csapi.iml

@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<module type="WEB_MODULE" version="4">
-  <component name="NewModuleRootManager">
-    <content url="file://$MODULE_DIR$">
-      <sourceFolder url="file://$MODULE_DIR$/tests" isTestSource="true" />
-      <sourceFolder url="file://$MODULE_DIR$/spec" isTestSource="true" />
-    </content>
-    <orderEntry type="inheritedJdk" />
-    <orderEntry type="sourceFolder" forTests="false" />
-  </component>
-</module>

+ 0 - 4
.idea/php.xml

@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
-  <component name="PhpProjectSharedConfiguration" php_language_level="5.4.0" />
-</project>

+ 47 - 42
composer.json

@@ -1,45 +1,50 @@
 {
-    "name": "topthink/think",
-    "description": "the new thinkphp framework",
-    "type": "project",
-    "keywords": [
-        "framework",
-        "thinkphp",
-        "ORM"
-    ],
-    "homepage": "http://thinkphp.cn/",
-    "license": "Apache-2.0",
-    "authors": [
-        {
-            "name": "liu21st",
-            "email": "liu21st@gmail.com"
-        }
-    ],
-     "repositories": {
-    	"packagist": {
-        	"type": "composer",
-        	"url": "https://packagist.phpcomposer.com"
-    	}
-	},
-    "require": {
-        "php": ">=5.4.0",
-        "topthink/framework": "^5.0",
-        "topthink/think-image": "^1.0",
-        "topthink/think-captcha": "^1.0",
-        "topthink/think-mongo": "^1.0",
-        "topthink/think-migration": "^1.0",
-        "topthink/think-angular": "^1.0",
-        "topthink/think-sae": "^1.0",
-        "topthink/think-worker": "^1.0",
-        "topthink/think-queue": "^1.0",
-        "topthink/think-testing": "^1.0",
-        "ext-json": "*",
-        "guzzlehttp/guzzle": "^7.2"
-    },
-    "extra": {
-        "think-path": "thinkphp"
-    },
-    "config": {
-        "preferred-install": "dist"
+  "name": "topthink/think",
+  "description": "the new thinkphp framework",
+  "type": "project",
+  "keywords": [
+    "framework",
+    "thinkphp",
+    "ORM"
+  ],
+  "homepage": "http://thinkphp.cn/",
+  "license": "Apache-2.0",
+  "authors": [
+    {
+      "name": "liu21st",
+      "email": "liu21st@gmail.com"
     }
+  ],
+  "repositories": {
+    "packagist": {
+      "type": "composer",
+      "url": "https://packagist.phpcomposer.com"
+    }
+  },
+  "require": {
+    "php": ">=5.4.0",
+    "topthink/framework": "^5.0",
+    "topthink/think-image": "^1.0",
+    "topthink/think-captcha": "^1.0",
+    "topthink/think-mongo": "^1.0",
+    "topthink/think-migration": "^1.0",
+    "topthink/think-angular": "^1.0",
+    "topthink/think-sae": "^1.0",
+    "topthink/think-worker": "^1.0",
+    "topthink/think-queue": "^1.0",
+    "topthink/think-testing": "^1.0",
+    "ext-json": "*",
+    "guzzlehttp/guzzle": "^7.2"
+  },
+  "extra": {
+    "think-path": "thinkphp"
+  },
+  "config": {
+    "preferred-install": "dist"
+  },
+  "autoload": {
+    "psr-4": {
+      "PHPMailer\\PHPMailer\\": "application/common/utils/PHPMailer/src"
+    }
+  }
 }