Просмотр исходного кода

Merge pull request #473 from schmunk42/master

updated script event
Qiang Xue 12 лет назад
Родитель
Сommit
c577dbf9dd
3 измененных файлов с 21 добавлено и 9 удалено
  1. 15 0
      README.md
  2. 1 4
      composer.json
  3. 5 5
      composer.lock

+ 15 - 0
README.md

@@ -59,3 +59,18 @@ assuming `yii-basic` is directly under the document root of your Web server.
 ### Install from an Archive File
 
 This is not currently available. We will provide it when Yii 2 is formally released.
+
+
+### Install from development repository
+
+If you've cloned the [Yii 2 framework main development reop](https://github.com/yiisoft/yii2) you
+can bootstrap your application with:
+
+~~~
+cd yii2/apps/basic
+php composer.phar create-project
+~~~
+
+*Note: If the above command fails with `[RuntimeException] Not enough arguments.` run
+`php composer.phar self-update` to obtain an updated version of composer which supports creating projects
+from local packages.*

+ 1 - 4
composer.json

@@ -19,10 +19,7 @@
 		"yiisoft/yii2-composer": "dev-master"
 	},
 	"scripts": {
-		"post-install-cmd": [
-			"yii\\composer\\InstallHandler::setPermissions"
-		],
-		"post-update-cmd": [
+		"post-create-project-cmd": [
 			"yii\\composer\\InstallHandler::setPermissions"
 		]
 	},

+ 5 - 5
composer.lock

@@ -3,7 +3,7 @@
         "This file locks the dependencies of your project to a known state",
         "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file"
     ],
-    "hash": "0411dbbd774aa1c89256c77c68023940",
+    "hash": "91ba258de768b93025f86071f3bb4b84",
     "packages": [
         {
             "name": "yiisoft/yii2",
@@ -11,12 +11,12 @@
             "source": {
                 "type": "git",
                 "url": "https://github.com/yiisoft/yii2-framework.git",
-                "reference": "2d93f20ba6044ac3f1957300c4ae85fd98ecf47d"
+                "reference": "3ad6334be076a80df3b2ea0b57f38bd0c6901989"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/yiisoft/yii2-framework/zipball/2d93f20ba6044ac3f1957300c4ae85fd98ecf47d",
-                "reference": "2d93f20ba6044ac3f1957300c4ae85fd98ecf47d",
+                "url": "https://api.github.com/repos/yiisoft/yii2-framework/zipball/3ad6334be076a80df3b2ea0b57f38bd0c6901989",
+                "reference": "3ad6334be076a80df3b2ea0b57f38bd0c6901989",
                 "shasum": ""
             },
             "require": {
@@ -97,7 +97,7 @@
                 "framework",
                 "yii"
             ],
-            "time": "2013-05-29 02:55:14"
+            "time": "2013-06-02 19:19:29"
         },
         {
             "name": "yiisoft/yii2-composer",