59 Commits

Author SHA1 Message Date
161526cd41 HTTPS everywhere (#19503) 2022-08-03 12:32:18 +03:00
4628b91e73 Fix types (#19332)
* Migration::upsert() returns void

* Unneeded `@property` tags

* Add missing `null` param/return types

* Null types for db\Query + db\ActiveQuery

* Fixed testSelect
2022-03-30 18:40:10 +02:00
e3028c524d Fix #18899: Replace usages of strpos with strncmp and remove redundant usage of array_merge and array_values 2021-09-28 11:06:46 +03:00
9d56179e9d Updated asUrl method to not introduce BC break (#18742) 2021-07-04 11:03:19 +02:00
b8f4958092 Fix #18442: Fix calls with array access to strings 2020-12-23 01:08:58 +03:00
e6f5c46cdc Fixes #15633: Deprecate some things going away/changing in 2.1
- Deprecated `yii\base\BaseObject::className()` in favor of native PHP syntax `::class`, which does not trigger autoloading
- Deprecated XCache and Zend data cache support as caching backends
- Deprecated `yii\BaseYii::powered()` method
- Added `yii\base\InvalidArgumentException` and deprecated `yii\base\InvalidParamException`
- Added `yii\BaseYii::debug()` and deprecated `yii\BaseYii::trace()`
2018-02-11 01:48:29 +03:00
01ff1f6593 Fixes #15142: Fixed array params replacing in yii\helpers\BaseUrl::current() 2017-12-02 08:26:55 +03:00
59b635c2a6 Fixes #14921: Fixed bug with replacing numeric keys in yii\helpers\Url::current() 2017-10-07 18:47:31 +02:00
5a8c3d537b Enable phpdoc_summary rule in php-cs-fixer config (#14675)
* Enable `phpdoc_summary` rule in php-cs-fixer config.

* Fix case in "PHPDoc".
2017-08-21 11:19:35 +02:00
fe8a0a6a2e Enable no_useless_else rule in php-cs-fixer (#14420) 2017-07-10 11:26:21 +03:00
7e1a050a16 Fixes #13821: fixed docs and added more tests for Url helper 2017-03-23 17:35:47 +03:00
8e0af24203 Fix protocol-relative URLs in Url::to() (#13156) (#13157)
* Fix protocol-relative URLs in `Url::to()`

* Use `isRelative()` in `Url::to()`
2016-12-11 20:39:21 +02:00
2d91723934 Add support for creating protocol-relative URLs.
Improve phpdoc for protocol-relative URL creation.
Remove useless `is_string()` check.
2016-11-29 09:53:51 +02:00
4aa935e69e Fixes #12055: Changed boolean to bool and integer to int in phpdoc 2016-11-07 02:51:39 +03:00
11d599704c phpDoc: Url::previous() return null value (#12625) 2016-09-28 14:38:38 +02:00
2365c77102 Fixes #12402: Added clarification about array-parameters to phpdoc of Url::current() [skip ci] 2016-08-31 16:36:46 +03:00
d3b5f4a284 Fixes #3656: Encode / in "r" query parameter in docs as it really is 2016-03-15 21:52:41 +03:00
191f2a4943 fixed phpdoc type names 2016-02-25 20:24:32 +01:00
8b0f28f780 Add @since [skip ci] 2016-02-15 23:06:58 +01:00
1ec972fbf7 Fixes #10610: Added BaseUrl::$urlManager to be able to set URL manager used for creating URLs 2016-02-15 22:35:58 +03:00
1b3770fd21 Use === instead of == where possible 2015-10-10 01:04:35 +03:00
4ae7eb1819 Fixes #6697. 2015-01-13 21:28:13 -05:00
59cc605ddd Fixed version [skip ci] 2015-01-11 11:00:27 -05:00
52f4006c11 Fixed Url::current() implementation. 2015-01-11 10:43:06 -05:00
9c7e4e514d Fixes #6697: Added yii\helpers\Url::current() method that allows adding or removing parameters from current URL 2015-01-11 15:38:13 +08:00
201043244d doc fixes [skip ci] 2015-01-10 23:23:36 -05:00
cc3209cf26 Fixes #4502: Added alias support to URL route when calling Url::toRoute() and Url::to() 2014-12-29 19:26:44 -05:00
bb8550886e PHP type casting 2014-10-25 15:30:03 +03:00
f51a263570 new asset management WIP 2014-08-27 16:44:00 -04:00
1c3e61ec26 Fixes #4591: yii\helpers\Url::to() will no longer prefix relative URLs with the base URL 2014-08-05 11:06:54 -04:00
e5a87af234 Fixes #4331: yii\helpers\Url now uses UrlManager to determine base URL when generating URLs 2014-07-17 21:51:37 -04:00
24257e76c8 Fixes #3909: Html::to() should not prefix base URL to URLs that already contain scheme 2014-06-17 15:41:01 -04:00
4f9e4e2c78 ensure assetmanager and baseurl to handle relative urls correctly 2014-04-25 04:06:07 +02:00
c7c708d454 Removed unused imports 2014-04-17 15:35:09 +04:00
0b29c9607d fixed broken API links [skip ci] 2014-04-09 22:22:49 -04:00
0b2aafc780 fixed private / self in helpers
fixes #2886
2014-03-26 16:03:42 +01:00
94fb8672d1 fixed url helper to not prepend to relative URLs 2014-03-23 21:32:42 +01:00
bf3c75147d reverted breaking PHPdoc codestyle changes
issue #2852
2014-03-23 20:51:09 +01:00
6e8c460273 Fixes #2724: consistent use of absolute and relative routes. 2014-03-22 20:17:31 -04:00
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
252f49b97a doc fixes. 2014-03-10 21:31:06 -04:00
842e7eb573 Added tests, final Url helper adjustments 2014-03-11 02:12:13 +04:00
bddad5280c Combined $schema and $absolute into $schema 2014-03-10 20:29:24 +04:00
577f8a5c50 Added separate schema and absolute parameters 2014-03-10 20:11:06 +04:00
2b842ecc57 Moded URL management methods from controller to Url helper, updated docs 2014-03-10 19:40:32 +04:00
1276970ce5 Made $url default consistent 2014-03-10 17:57:24 +04:00
aeb25c39e1 Further adjustments for Url helper 2014-03-10 17:52:03 +04:00
338bc86e6d Fixed absolute URLs in Url::to 2014-03-10 15:54:25 +04:00
67af6bc84a Fixed inconsistent usage of getters 2014-03-10 15:50:43 +04:00
cb5a889621 Fixed recursion 2014-03-10 15:39:31 +04:00