From 4ffbfec9aa032e5923b6fdfd7db9bc7e25275b40 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Wed, 27 Aug 2014 12:55:49 +0400 Subject: [PATCH] Fixes #4829: Removed `PARSING_ONLY` from `\yii\rest\UrlRule` to allow creating non-GET URLs for forms and tests --- framework/CHANGELOG.md | 1 + framework/rest/UrlRule.php | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/framework/CHANGELOG.md b/framework/CHANGELOG.md index ee92654082..415fdd8f58 100644 --- a/framework/CHANGELOG.md +++ b/framework/CHANGELOG.md @@ -242,6 +242,7 @@ Yii Framework 2 Change Log - Chg #4586: Signed bigint and unsigned int will be converted into integers when they are loaded from DB by AR (qiangxue) - Chg #4591: `yii\helpers\Url::to()` will no longer prefix relative URLs with the base URL (qiangxue) - Chg #4595: `yii\widgets\LinkPager`'s `nextPageLabel`, `prevPageLabel`, `firstPageLabel`, `lastPageLabel` are now taking `false` instead of `null` for "no label" (samdark) +- Chg #4829: Removed `PARSING_ONLY` from `\yii\rest\UrlRule` to allow creating non-GET URLs for forms and tests (samdark) - Chg: Replaced `clearAll()` and `clearAllAssignments()` in `yii\rbac\ManagerInterface` with `removeAll()`, `removeAllRoles()`, `removeAllPermissions()`, `removeAllRules()` and `removeAllAssignments()` (qiangxue) - Chg: Added `$user` as the first parameter of `yii\rbac\Rule::execute()` (qiangxue) - Chg: `yii\grid\DataColumn::getDataCellValue()` visibility is now `public` to allow accessing the value from a GridView directly (cebe) diff --git a/framework/rest/UrlRule.php b/framework/rest/UrlRule.php index 565da5b24f..7968baa84b 100644 --- a/framework/rest/UrlRule.php +++ b/framework/rest/UrlRule.php @@ -201,9 +201,6 @@ class UrlRule extends CompositeUrlRule $config['verb'] = $verbs; $config['pattern'] = rtrim($prefix . '/' . strtr($pattern, $this->tokens), '/'); $config['route'] = $action; - if (!in_array('GET', $verbs)) { - $config['mode'] = \yii\web\UrlRule::PARSING_ONLY; - } $config['suffix'] = $this->suffix; return Yii::createObject($config);