Skip to content

Commit b986bd5

Browse files
committed
Merge remote branch 'official/master'
Conflicts: .gitignore .travis.yml README.md build/build build/controllers/DevController.php build/controllers/ReleaseController.php composer.json composer.lock docs/guide-es/README.md docs/guide-es/start-gii.md docs/guide-es/structure-controllers.md docs/guide-es/structure-entry-scripts.md docs/guide-fr/start-gii.md docs/guide-fr/structure-entry-scripts.md docs/guide-ja/README.md docs/guide-ja/concept-autoloading.md docs/guide-ja/concept-di-container.md docs/guide-ja/concept-events.md docs/guide-ja/concept-properties.md docs/guide-ja/concept-service-locator.md docs/guide-ja/db-active-record.md docs/guide-ja/db-migrations.md docs/guide-ja/db-query-builder.md docs/guide-ja/helper-array.md docs/guide-ja/helper-html.md docs/guide-ja/helper-overview.md docs/guide-ja/helper-url.md docs/guide-ja/input-file-upload.md docs/guide-ja/input-forms.md docs/guide-ja/input-multiple-models.md docs/guide-ja/intro-upgrade-from-v1.md docs/guide-ja/output-data-providers.md docs/guide-ja/output-formatting.md docs/guide-ja/output-theming.md docs/guide-ja/rest-authentication.md docs/guide-ja/runtime-handling-errors.md docs/guide-ja/runtime-requests.md docs/guide-ja/runtime-routing.md docs/guide-ja/security-authentication.md docs/guide-ja/security-authorization.md docs/guide-ja/security-best-practices.md docs/guide-ja/start-databases.md docs/guide-ja/start-forms.md docs/guide-ja/start-gii.md docs/guide-ja/start-hello.md docs/guide-ja/start-installation.md docs/guide-ja/start-looking-ahead.md docs/guide-ja/start-workflow.md docs/guide-ja/structure-applications.md docs/guide-ja/structure-assets.md docs/guide-ja/structure-controllers.md docs/guide-ja/structure-entry-scripts.md docs/guide-ja/structure-models.md docs/guide-ja/structure-modules.md docs/guide-ja/test-environment-setup.md docs/guide-ja/test-overview.md docs/guide-ja/tutorial-console.md docs/guide-ja/tutorial-core-validators.md docs/guide-ja/tutorial-mailing.md docs/guide-ja/tutorial-performance-tuning.md docs/guide-pl/README.md docs/guide-pl/intro-yii.md docs/guide-pt-BR/db-migrations.md docs/guide-pt-BR/intro-upgrade-from-v1.md docs/guide-pt-BR/start-gii.md docs/guide-pt-BR/structure-applications.md docs/guide-pt-BR/structure-controllers.md docs/guide-pt-BR/structure-entry-scripts.md docs/guide-ru/README.md docs/guide-ru/caching-data.md docs/guide-ru/caching-fragment.md docs/guide-ru/concept-autoloading.md docs/guide-ru/concept-behaviors.md docs/guide-ru/concept-di-container.md docs/guide-ru/concept-events.md docs/guide-ru/concept-properties.md docs/guide-ru/concept-service-locator.md docs/guide-ru/db-migrations.md docs/guide-ru/helper-array.md docs/guide-ru/input-forms.md docs/guide-ru/input-validation.md docs/guide-ru/intro-upgrade-from-v1.md docs/guide-ru/output-formatting.md docs/guide-ru/output-pagination.md docs/guide-ru/output-sorting.md docs/guide-ru/output-theming.md docs/guide-ru/rest-error-handling.md docs/guide-ru/rest-quick-start.md docs/guide-ru/rest-resources.md docs/guide-ru/rest-response-formatting.md docs/guide-ru/runtime-handling-errors.md docs/guide-ru/runtime-routing.md docs/guide-ru/runtime-sessions-cookies.md docs/guide-ru/security-authentication.md docs/guide-ru/start-databases.md docs/guide-ru/start-forms.md docs/guide-ru/start-gii.md docs/guide-ru/start-hello.md docs/guide-ru/structure-application-components.md docs/guide-ru/structure-applications.md docs/guide-ru/structure-assets.md docs/guide-ru/structure-controllers.md docs/guide-ru/structure-entry-scripts.md docs/guide-ru/structure-extensions.md docs/guide-ru/structure-filters.md docs/guide-ru/structure-models.md docs/guide-ru/structure-modules.md docs/guide-ru/structure-overview.md docs/guide-ru/structure-views.md docs/guide-ru/tutorial-core-validators.md docs/guide-ru/tutorial-i18n.md docs/guide-uk/README.md docs/guide-uk/caching-fragment.md docs/guide-uk/concept-aliases.md docs/guide-uk/concept-autoloading.md docs/guide-uk/images/application-lifecycle.graphml docs/guide-uk/images/application-lifecycle.png docs/guide-uk/images/application-structure.graphml docs/guide-uk/images/application-structure.png docs/guide-uk/intro-upgrade-from-v1.md docs/guide-uk/intro-yii.md docs/guide-uk/start-databases.md docs/guide-uk/start-forms.md docs/guide-uk/start-gii.md docs/guide-uk/start-hello.md docs/guide-uk/start-installation.md docs/guide-uk/start-looking-ahead.md docs/guide-uk/start-workflow.md docs/guide-uk/structure-application-components.md docs/guide-uk/structure-applications.md docs/guide-uk/structure-controllers.md docs/guide-uk/structure-entry-scripts.md docs/guide-uk/structure-overview.md docs/guide-uk/tutorial-yii-integration.md docs/guide-uz/intro-upgrade-from-v1.md docs/guide-zh-CN/README.md docs/guide-zh-CN/db-active-record.md docs/guide-zh-CN/db-dao.md docs/guide-zh-CN/input-validation.md docs/guide-zh-CN/rest-authentication.md docs/guide-zh-CN/rest-controllers.md docs/guide-zh-CN/rest-error-handling.md docs/guide-zh-CN/rest-quick-start.md docs/guide-zh-CN/rest-resources.md docs/guide-zh-CN/structure-controllers.md docs/guide-zh-CN/structure-entry-scripts.md docs/guide-zh-CN/structure-extensions.md docs/guide/README.md docs/guide/concept-di-container.md docs/guide/concept-properties.md docs/guide/db-active-record.md docs/guide/db-migrations.md docs/guide/db-query-builder.md docs/guide/glossary.md docs/guide/helper-array.md docs/guide/helper-html.md docs/guide/helper-overview.md docs/guide/input-file-upload.md docs/guide/input-forms.md docs/guide/input-multiple-models.md docs/guide/input-validation.md docs/guide/intro-upgrade-from-v1.md docs/guide/intro-yii.md docs/guide/output-data-widgets.md docs/guide/output-formatting.md docs/guide/output-pagination.md docs/guide/output-theming.md docs/guide/rest-authentication.md docs/guide/runtime-requests.md docs/guide/runtime-routing.md docs/guide/security-authorization.md docs/guide/security-best-practices.md docs/guide/start-databases.md docs/guide/start-forms.md docs/guide/start-gii.md docs/guide/start-hello.md docs/guide/start-installation.md docs/guide/start-looking-ahead.md docs/guide/start-workflow.md docs/guide/structure-applications.md docs/guide/structure-assets.md docs/guide/structure-controllers.md docs/guide/structure-entry-scripts.md docs/guide/structure-extensions.md docs/guide/structure-filters.md docs/guide/structure-models.md docs/guide/structure-modules.md docs/guide/structure-overview.md docs/guide/test-environment-setup.md docs/guide/test-unit.md docs/guide/tutorial-console.md docs/guide/tutorial-core-validators.md docs/guide/tutorial-i18n.md docs/guide/tutorial-performance-tuning.md docs/guide/tutorial-yii-integration.md docs/internals-ja/design-decisions.md docs/internals-ja/git-workflow.md docs/internals-ja/translation-workflow.md docs/internals-pt-BR/translation-workflow.md docs/internals-ru/getting-started.md docs/internals-ru/report-an-issue.md docs/internals-ru/translation-workflow.md docs/internals-uk/automation.md docs/internals-uk/versions.md docs/internals/design-decisions.md docs/internals/git-workflow.md docs/internals/translation-status.md docs/internals/translation-teams.md docs/internals/translation-workflow.md framework/BaseYii.php framework/CHANGELOG.md framework/UPGRADE.md framework/assets/yii.activeForm.js framework/assets/yii.js framework/assets/yii.validation.js framework/base/Action.php framework/base/ArrayAccessTrait.php framework/base/Arrayable.php framework/base/ArrayableTrait.php framework/base/Configurable.php framework/base/DynamicModel.php framework/base/ErrorException.php framework/base/ErrorHandler.php framework/base/InvalidValueException.php framework/base/Model.php framework/base/Security.php framework/base/Theme.php framework/base/Widget.php framework/behaviors/TimestampBehavior.php framework/caching/Cache.php framework/caching/FileCache.php framework/caching/FileDependency.php framework/caching/MemCache.php framework/captcha/Captcha.php framework/classes.php framework/console/Application.php framework/console/Controller.php framework/console/Markdown.php framework/console/controllers/BaseMigrateController.php framework/console/controllers/CacheController.php framework/console/controllers/FixtureController.php framework/console/controllers/MessageController.php framework/data/ActiveDataProvider.php framework/db/ActiveQuery.php framework/db/ActiveQueryInterface.php framework/db/ActiveQueryTrait.php framework/db/ActiveRecord.php framework/db/ActiveRecordInterface.php framework/db/ActiveRelationTrait.php framework/db/BaseActiveRecord.php framework/db/BatchQueryResult.php framework/db/ColumnSchema.php framework/db/Command.php framework/db/Connection.php framework/db/DataReader.php framework/db/Migration.php framework/db/Query.php framework/db/QueryBuilder.php framework/db/QueryInterface.php framework/db/QueryTrait.php framework/db/Schema.php framework/db/TableSchema.php framework/db/mssql/QueryBuilder.php framework/db/mysql/QueryBuilder.php framework/db/oci/QueryBuilder.php framework/db/oci/Schema.php framework/db/pgsql/QueryBuilder.php framework/db/pgsql/Schema.php framework/db/sqlite/QueryBuilder.php framework/db/sqlite/Schema.php framework/di/Container.php framework/filters/ContentNegotiator.php framework/filters/PageCache.php framework/filters/RateLimitInterface.php framework/filters/auth/AuthInterface.php framework/grid/ActionColumn.php framework/grid/CheckboxColumn.php framework/grid/GridView.php framework/helpers/BaseArrayHelper.php framework/helpers/BaseConsole.php framework/helpers/BaseFileHelper.php framework/helpers/BaseHtml.php framework/helpers/BaseHtmlPurifier.php framework/helpers/BaseJson.php framework/helpers/BaseStringHelper.php framework/helpers/BaseVarDumper.php framework/i18n/Formatter.php framework/log/DbTarget.php framework/log/EmailTarget.php framework/log/SyslogTarget.php framework/log/Target.php framework/mail/MessageInterface.php framework/messages/ar/yii.php framework/messages/config.php framework/messages/fr/yii.php framework/messages/he/yii.php framework/messages/id/yii.php framework/messages/kk/yii.php framework/messages/nl/yii.php framework/messages/pt-BR/yii.php framework/messages/ru/yii.php framework/messages/uk/yii.php framework/mutex/FileMutex.php framework/mutex/MysqlMutex.php framework/rbac/DbManager.php framework/rbac/migrations/m140506_102106_rbac_init.php framework/requirements/YiiRequirementChecker.php framework/requirements/requirements.php framework/rest/UrlRule.php framework/test/ArrayFixture.php framework/test/FixtureTrait.php framework/validators/CompareValidator.php framework/validators/DateValidator.php framework/validators/EachValidator.php framework/validators/EmailValidator.php framework/validators/ExistValidator.php framework/validators/FileValidator.php framework/validators/FilterValidator.php framework/validators/NumberValidator.php framework/validators/RegularExpressionValidator.php framework/validators/SafeValidator.php framework/validators/UniqueValidator.php framework/validators/UrlValidator.php framework/validators/Validator.php framework/views/errorHandler/callStackItem.php framework/views/errorHandler/exception.php framework/views/migration.php framework/web/AssetConverter.php framework/web/AssetManager.php framework/web/Controller.php framework/web/CookieCollection.php framework/web/DbSession.php framework/web/ErrorAction.php framework/web/ErrorHandler.php framework/web/HeaderCollection.php framework/web/IdentityInterface.php framework/web/Request.php framework/web/Response.php framework/web/Session.php framework/web/SessionIterator.php framework/web/UrlManager.php framework/web/UrlRule.php framework/web/UrlRuleInterface.php framework/web/User.php framework/widgets/ActiveField.php framework/widgets/ActiveForm.php framework/widgets/Breadcrumbs.php framework/widgets/LinkSorter.php framework/widgets/MaskedInput.php framework/widgets/Menu.php framework/yii tests/data/ar/Customer.php tests/data/cubrid.sql tests/data/mssql.sql tests/data/mysql.sql tests/data/oci.sql tests/data/postgres.sql tests/data/sqlite.sql tests/data/travis/memcache-setup.sh tests/framework/base/SecurityTest.php tests/framework/behaviors/TimestampBehaviorTest.php tests/framework/console/controllers/BaseMessageControllerTest.php tests/framework/db/ActiveRecordTest.php tests/framework/db/CommandTest.php tests/framework/db/QueryBuilderTest.php tests/framework/db/QueryTest.php tests/framework/db/SchemaTest.php tests/framework/db/cubrid/CubridQueryBuilderTest.php tests/framework/db/oci/OracleCommandTest.php tests/framework/db/pgsql/PostgreSQLCommandTest.php tests/framework/db/pgsql/PostgreSQLQueryBuilderTest.php tests/framework/db/sqlite/SqliteQueryBuilderTest.php tests/framework/helpers/HtmlTest.php tests/framework/i18n/FormatterDateTest.php tests/framework/validators/DateValidatorTest.php tests/framework/validators/FileValidatorTest.php tests/framework/validators/RequiredValidatorTest.php tests/framework/web/RequestTest.php tests/framework/web/UrlManagerTest.php tests/framework/widgets/ActiveFieldTest.php
2 parents 6983982 + bbc4910 commit b986bd5

File tree

773 files changed

+63466
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

773 files changed

+63466
-1
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ composer.phar
3030
phpunit.phar
3131
# local phpunit config
3232
/phpunit.xml
33+
<<<<<<< HEAD
3334

3435
# ignore sub directory for dev installed apps and extensions
3536
/apps
3637
/extensions
38+
=======
39+
>>>>>>> official/master

.travis.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ php:
44
- 5.4
55
- 5.5
66
- 5.6
7+
<<<<<<< HEAD
78
- 7.0
9+
=======
10+
>>>>>>> official/master
811
- hhvm
912
- hhvm-nightly
1013

@@ -17,18 +20,31 @@ matrix:
1720
fast_finish: true
1821
allow_failures:
1922
- php: hhvm-nightly
23+
<<<<<<< HEAD
2024
- php: 7.0
2125

2226
services:
2327
- memcached
28+
=======
29+
30+
services:
31+
- redis-server
32+
- memcached
33+
- elasticsearch
34+
- mongodb
35+
>>>>>>> official/master
2436

2537
# faster builds on new travis setup not using sudo
2638
sudo: false
2739

2840
# cache vendor dirs
2941
cache:
3042
directories:
43+
<<<<<<< HEAD
3144
# - cubrid/9.3.0
45+
=======
46+
# - cubrid # caching cubrid breaks the build on a regular basis and has nearly no speedup
47+
>>>>>>> official/master
3248
- vendor
3349
- $HOME/.composer/cache
3450

@@ -38,6 +54,7 @@ addons:
3854

3955
install:
4056
- travis_retry composer self-update && composer --version
57+
<<<<<<< HEAD
4158
- travis_retry composer global require "fxp/composer-asset-plugin:~1.0.0"
4259
- export PATH="$HOME/.composer/vendor/bin:$PATH"
4360
# core framework:
@@ -71,3 +88,55 @@ after_script:
7188
travis_retry wget https://scrutinizer-ci.com/ocular.phar
7289
php ocular.phar code-coverage:upload --format=php-clover coverage.clover
7390
fi
91+
=======
92+
- travis_retry composer global require "fxp/composer-asset-plugin:1.0.0-beta4"
93+
- export PATH="$HOME/.composer/vendor/bin:$PATH"
94+
# core framework:
95+
- travis_retry composer install --prefer-dist --no-interaction
96+
- tests/unit/data/travis/mongodb-setup.sh
97+
# TODO: APC currently fails composer. https://github.com/composer/composer/issues/3405
98+
# - tests/unit/data/travis/apc-setup.sh
99+
- tests/unit/data/travis/memcache-setup.sh
100+
- tests/unit/data/travis/cubrid-setup.sh
101+
# print elasticsearch version
102+
- curl http://localhost:9200
103+
# codeception
104+
- travis_retry composer global require "codeception/codeception=2.0.*" "codeception/specify=*" "codeception/verify=*"
105+
# basic and advanced application:
106+
- tests/unit/data/travis/setup-apps.sh
107+
108+
before_script:
109+
- echo 'elasticsearch version ' && curl http://localhost:9200/
110+
- mysql -e 'CREATE DATABASE yiitest;';
111+
- psql -U postgres -c 'CREATE DATABASE yiitest;';
112+
- tests/unit/data/travis/sphinx-setup.sh
113+
- mongo yii2test --eval 'db.addUser("travis", "test");'
114+
# basic and advanced application:
115+
- tests/unit/data/travis/init-apps.sh
116+
117+
script:
118+
- vendor/bin/phpunit --verbose --coverage-clover=coverage.clover --exclude-group mssql,oci,wincache,xcache,zenddata
119+
- |
120+
if (php --version | grep -i HipHop > /dev/null); then
121+
echo "Skipping basic application tests on HHVM"
122+
else
123+
cd apps/basic/web
124+
php -S localhost:8080 > /dev/null 2>&1 &
125+
cd ../tests
126+
codecept run
127+
fi
128+
- |
129+
if (php --version | grep -i HipHop > /dev/null); then
130+
echo "Skipping advanced application tests on HHVM"
131+
else
132+
cd apps/advanced
133+
php -S localhost:8080 > /dev/null 2>&1 &
134+
cd tests
135+
codecept run
136+
fi
137+
138+
after_script:
139+
- cd ../../..
140+
- travis_retry wget https://scrutinizer-ci.com/ocular.phar
141+
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
142+
>>>>>>> official/master

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,21 @@ Yii 2 requires PHP 5.4 and embraces the best practices and protocols found in mo
1111
[![Latest Stable Version](https://poser.pugx.org/yiisoft/yii2/v/stable.png)](https://packagist.org/packages/yiisoft/yii2)
1212
[![Total Downloads](https://poser.pugx.org/yiisoft/yii2/downloads.png)](https://packagist.org/packages/yiisoft/yii2)
1313
[![Reference Status](https://www.versioneye.com/php/yiisoft:yii2/reference_badge.svg)](https://www.versioneye.com/php/yiisoft:yii2/references)
14+
<<<<<<< HEAD
1415
[![Build Status](https://img.shields.io/travis/yiisoft/yii2.svg)](http://travis-ci.org/yiisoft/yii2)
1516
[![Dependency Status](https://www.versioneye.com/php/yiisoft:yii2/dev-master/badge.png)](https://www.versioneye.com/php/yiisoft:yii2/dev-master)
1617
[![HHVM Status](https://img.shields.io/hhvm/yiisoft/yii2-dev.svg)](http://hhvm.h4cc.de/package/yiisoft/yii2-dev)
1718
[![Code Coverage](https://scrutinizer-ci.com/g/yiisoft/yii2/badges/coverage.png?s=31d80f1036099e9d6a3e4d7738f6b000b3c3d10e)](https://scrutinizer-ci.com/g/yiisoft/yii2/)
1819
[![Scrutinizer Quality Score](https://scrutinizer-ci.com/g/yiisoft/yii2/badges/quality-score.png?s=b1074a1ff6d0b214d54fa5ab7abbb90fc092471d)](https://scrutinizer-ci.com/g/yiisoft/yii2/)
1920
[![Code Climate](https://img.shields.io/codeclimate/github/yiisoft/yii2.svg)](https://codeclimate.com/github/yiisoft/yii2)
21+
=======
22+
[![Build Status](https://secure.travis-ci.org/yiisoft/yii2.png)](http://travis-ci.org/yiisoft/yii2)
23+
[![Dependency Status](https://www.versioneye.com/php/yiisoft:yii2/dev-master/badge.png)](https://www.versioneye.com/php/yiisoft:yii2/dev-master)
24+
[![HHVM Status](http://hhvm.h4cc.de/badge/yiisoft/yii2-dev.png)](http://hhvm.h4cc.de/package/yiisoft/yii2-dev)
25+
[![Code Coverage](https://scrutinizer-ci.com/g/yiisoft/yii2/badges/coverage.png?s=31d80f1036099e9d6a3e4d7738f6b000b3c3d10e)](https://scrutinizer-ci.com/g/yiisoft/yii2/)
26+
[![Scrutinizer Quality Score](https://scrutinizer-ci.com/g/yiisoft/yii2/badges/quality-score.png?s=b1074a1ff6d0b214d54fa5ab7abbb90fc092471d)](https://scrutinizer-ci.com/g/yiisoft/yii2/)
27+
[![Code Climate](https://codeclimate.com/github/yiisoft/yii2.png)](https://codeclimate.com/github/yiisoft/yii2)
28+
>>>>>>> official/master
2029
2130
DIRECTORY STRUCTURE
2231
-------------------
@@ -51,7 +60,11 @@ to have a general idea of what has changed in 2.0.
5160
HOW TO PARTICIPATE
5261
------------------
5362

63+
<<<<<<< HEAD
5464
### Your participation to Yii 2 development is very welcome!
65+
=======
66+
**Your participation to Yii 2 development is very welcome!**
67+
>>>>>>> official/master
5568
5669
You may participate in the following ways:
5770

@@ -60,6 +73,7 @@ You may participate in the following ways:
6073
- [Give us feedback or start a design discussion](http://www.yiiframework.com/forum/index.php/forum/42-general-discussions-for-yii-20/)
6174
- [Contribute to the core code or fix bugs](docs/internals/git-workflow.md)
6275

76+
<<<<<<< HEAD
6377
### Acknowledging or citing Yii 2
6478

6579
**In presentations**
@@ -79,3 +93,5 @@ If your code is hosted at GitHub, you can place the following in your README.md
7993
```
8094
[![Yii2](https://img.shields.io/badge/Powered_by-Yii_Framework-green.svg?style=flat)](http://www.yiiframework.com/)
8195
```
96+
=======
97+
>>>>>>> official/master

build/build

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88
* @license http://www.yiiframework.com/license/
99
*/
1010

11+
<<<<<<< HEAD
12+
=======
13+
// fcgi doesn't have STDIN and STDOUT defined by default
14+
defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));
15+
defined('STDOUT') or define('STDOUT', fopen('php://stdout', 'w'));
16+
17+
>>>>>>> official/master
1118
define('YII_DEBUG', true);
1219

1320
$composerAutoload = [

build/controllers/DevController.php

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,14 @@ class DevController extends Controller
2626
{
2727
public $defaultAction = 'all';
2828

29+
<<<<<<< HEAD
2930
/**
3031
* @var bool whether to use HTTP when cloning github repositories
3132
*/
3233
public $useHttp = false;
3334

35+
=======
36+
>>>>>>> official/master
3437
public $apps = [
3538
'basic' => '[email protected]:yiisoft/yii2-app-basic.git',
3639
'advanced' => '[email protected]:yiisoft/yii2-app-advanced.git',
@@ -68,14 +71,22 @@ public function actionAll()
6871
}
6972

7073
foreach($this->extensions as $ext => $repo) {
74+
<<<<<<< HEAD
7175
$ret = $this->actionExt($ext);
76+
=======
77+
$ret = $this->actionExt($ext, $repo);
78+
>>>>>>> official/master
7279
if ($ret !== 0) {
7380
return $ret;
7481
}
7582
}
7683

7784
foreach($this->apps as $app => $repo) {
85+
<<<<<<< HEAD
7886
$ret = $this->actionApp($app);
87+
=======
88+
$ret = $this->actionApp($app, $repo);
89+
>>>>>>> official/master
7990
if ($ret !== 0) {
8091
return $ret;
8192
}
@@ -141,9 +152,12 @@ public function actionApp($app, $repo = null)
141152
if (empty($repo)) {
142153
if (isset($this->apps[$app])) {
143154
$repo = $this->apps[$app];
155+
<<<<<<< HEAD
144156
if ($this->useHttp) {
145157
$repo = str_replace('[email protected]:', 'https://github.com/', $repo);
146158
}
159+
=======
160+
>>>>>>> official/master
147161
} else {
148162
$this->stderr("Repo argument is required for app '$app'.\n", Console::FG_RED);
149163
return 1;
@@ -179,8 +193,11 @@ public function actionApp($app, $repo = null)
179193
*
180194
* @param string $extension the application name e.g. `basic` or `advanced`.
181195
* @param string $repo url of the git repo to clone if it does not already exist.
196+
<<<<<<< HEAD
182197
*
183198
* @return int
199+
=======
200+
>>>>>>> official/master
184201
*/
185202
public function actionExt($extension, $repo = null)
186203
{
@@ -192,9 +209,12 @@ public function actionExt($extension, $repo = null)
192209
if (empty($repo)) {
193210
if (isset($this->extensions[$extension])) {
194211
$repo = $this->extensions[$extension];
212+
<<<<<<< HEAD
195213
if ($this->useHttp) {
196214
$repo = str_replace('[email protected]:', 'https://github.com/', $repo);
197215
}
216+
=======
217+
>>>>>>> official/master
198218
} else {
199219
$this->stderr("Repo argument is required for extension '$extension'.\n", Console::FG_RED);
200220
return 1;
@@ -225,6 +245,7 @@ public function actionExt($extension, $repo = null)
225245
return 0;
226246
}
227247

248+
<<<<<<< HEAD
228249
/**
229250
* @inheritdoc
230251
*/
@@ -242,6 +263,9 @@ public function options($actionID)
242263
* Remove all symlinks in the vendor subdirectory of the directory specified
243264
* @param string $dir base directory
244265
*/
266+
=======
267+
268+
>>>>>>> official/master
245269
protected function cleanupVendorDir($dir)
246270
{
247271
if (is_link($link = "$dir/vendor/yiisoft/yii2")) {
@@ -257,13 +281,16 @@ protected function cleanupVendorDir($dir)
257281
}
258282
}
259283

284+
<<<<<<< HEAD
260285
/**
261286
* Creates symlinks to freamework and extension sources for the application
262287
* @param string $dir application directory
263288
* @param string $base Yii sources base directory
264289
*
265290
* @return int
266291
*/
292+
=======
293+
>>>>>>> official/master
267294
protected function linkFrameworkAndExtensions($dir, $base)
268295
{
269296
if (is_dir($link = "$dir/vendor/yiisoft/yii2")) {
@@ -303,12 +330,15 @@ protected function unlink($file)
303330
}
304331
}
305332

333+
<<<<<<< HEAD
306334
/**
307335
* Get a list of subdirectories for directory specified
308336
* @param string $dir directory to read
309337
*
310338
* @return array list of subdirectories
311339
*/
340+
=======
341+
>>>>>>> official/master
312342
protected function listSubDirs($dir)
313343
{
314344
$list = [];
@@ -357,7 +387,11 @@ protected function findDirs($dir)
357387
closedir($handle);
358388

359389
foreach($list as $i => $e) {
390+
<<<<<<< HEAD
360391
if ($e === 'composer') { // skip composer to not break composer update
392+
=======
393+
if ($e == 'composer') { // skip composer to not break composer update
394+
>>>>>>> official/master
361395
unset($list[$i]);
362396
}
363397
}

0 commit comments

Comments
 (0)