Commit Graph

1066 Commits

Author SHA1 Message Date
Qiang Xue
9d663bed54 Merge pull request #198 from creocoder/auth-manager
[WIP] Auth manager
2013-05-10 05:42:36 -07:00
Alexander Kochetov
b9ea7e6fd8 DbManager code style fix + right Exception type fix 2013-05-10 16:32:28 +04:00
Alexander Kochetov
4b8bcd43e0 Unit tests fix 2013-05-10 16:18:01 +04:00
Alexander Kochetov
bea449f8a0 Unit tests 2013-05-10 16:11:04 +04:00
Benjamin Wöster
612eb3fdb7 undo commit 1ccce67f34 2013-05-10 13:55:40 +02:00
Benjamin Wöster
8420cec8dd Merge commit '1ccce' into fix-209-default-timezone 2013-05-10 13:53:21 +02:00
Benjamin Wöster
b8ad3567e4 set application timezone early in application constructor, set default of UTC if no timezone is configured at all (not in app config nor in php.ini) 2013-05-10 13:49:42 +02:00
Alexander Makarov
1ccce67f34 fixes #209: do not produce error if not timezone set in case of running yiic from framework dir 2013-05-10 15:46:59 +04:00
Alexander Makarov
810d232ee6 fixes #209 added setting default timezone to UTC in case it's not set via php.ini 2013-05-10 15:13:23 +04:00
Alexander Kochetov
0d90541084 Moved from framework to yii 2013-05-10 14:59:11 +04:00
Alexander Kochetov
815c7eff6b Merge branch 'master' of https://github.com/yiisoft/yii2 into auth-manager 2013-05-10 14:44:35 +04:00
Alexander Kochetov
3fe23f83c7 Remove IManager interface 2013-05-10 13:50:17 +04:00
Alexander Kochetov
a03d1164ad New condition hash format used where its possible 2013-05-10 10:47:08 +04:00
Alexander Kochetov
ded8c22b56 Exception types corrected 2013-05-10 10:15:19 +04:00
Alexander Kochetov
56757cdd94 PhpManager::saveToFile() LOCK_EX added 2013-05-10 10:02:36 +04:00
Alexander Kochetov
132391065c Comment fixes 2013-05-10 09:59:18 +04:00
Alexander Kochetov
c9fe510ebb Comment fixes + class descriptions added 2013-05-10 09:52:21 +04:00
Benjamin Wöster
f23a677bdf mod: incorporate suggestions
- rename requireApp() to mockApplication()
- always destroy app on tearDown()
  - eliminates need for constant YII_DESTROY_APP_ON_TEARDOWN
  - mockApplication() becomes a lot easier. Destroying app on each tearDown
    means creating it on every call is fine. No more checking if it already
    exists and if it has been created from the same config.
- \yii::$app should have been \Yii::$app
2013-05-10 02:01:08 +02:00
Qiang Xue
ecbae28700 Merge pull request #197 from tonydspaniard/196-add-popvalue-method
Enhance ArrayHelper with popValue method
2013-05-09 16:20:59 -07:00
Qiang Xue
533f3db4ed Merge pull request #202 from rusmaxim/15-unit-tests-of-sqlite-driver
Added and resolved Sqlite tests #15.
2013-05-09 16:14:40 -07:00
Benjamin Wöster
c30ee60e9c add: new key for unit tests config named "className". Allows to run the tests
using different Application instances (consoleApp/ webApp)
mod: TestCase::getParam accepts second param $default=null
2013-05-09 22:06:58 +02:00
Benjamin Wöster
5e0f6604e8 mod: don't create app in bootstrap script, unit tests do it themselves
add: option to destroy app after each test to find unit tests that fail
     to require an app
2013-05-09 21:56:36 +02:00
Benjamin Wöster
d4b30e26c2 allow unit tests to requireApp() on setUp() 2013-05-09 20:41:57 +02:00
Alexander Kochetov
850ff06560 DbManager added + other classes comments fixes 2013-05-09 22:17:12 +04:00
Rusinov Maxim
238684d6af Travis anyway do sqlite tests. No needed setting ENV. 2013-05-09 23:53:15 +06:00
Rusinov Maxim
0ad55efba9 Merge branch 'master' of git://github.com/yiisoft/yii2 into 15-unit-tests-of-sqlite-driver 2013-05-09 23:37:39 +06:00
Rusinov Maxim
452be102c6 Added newline at end files. 2013-05-09 23:27:19 +06:00
Qiang Xue
b6e0022128 Merge branch 'master' of https://github.com/yiisoft/yii2 2013-05-09 13:17:18 -04:00
Qiang Xue
db61885ebd Fixes issue #201. 2013-05-09 13:17:11 -04:00
Rusinov Maxim
d712605a71 Added and resolved Sqlite tests #15. 2013-05-09 23:12:18 +06:00
Antonio Ramirez
18f23ff143 Merge branch 'master' of git://github.com/yiisoft/yii2 into 196-add-popvalue-method
* 'master' of git://github.com/yiisoft/yii2:
  Updated framework paths in composer.json
  Moved "framework" to "iii".
  Fixed Yii::importNamespaces() bug.
  Fixes issue #174: make URL parameters available in $_GET.
  refactoring.
  Removed static variable from autoload per qiangxue's suggestion
  Renamed yii.php -> Yii.php for class, filename consitency
  created StringHelper::basename()
  Fixed YiiBaseTest echo
  Check if trait was loaded
2013-05-09 18:26:16 +02:00
Antonio Ramirez
5da62fab3a #196 refactored method name 2013-05-09 18:23:10 +02:00
Alexander Makarov
8332e8c60f Updated framework paths in composer.json 2013-05-09 20:12:40 +04:00
Qiang Xue
0d814fa523 Moved "framework" to "iii". 2013-05-09 12:00:15 -04:00
Qiang Xue
15e1a79952 Merge branch 'master' of https://github.com/yiisoft/yii2 2013-05-09 11:53:27 -04:00
Qiang Xue
b68bd8ef63 Fixed Yii::importNamespaces() bug. 2013-05-09 11:53:13 -04:00
Qiang Xue
599debc2b9 Merge pull request #195 from suralc/trait-autoload
Check if trait was loaded
2013-05-09 08:41:49 -07:00
Qiang Xue
8520be08de Fixes issue #174: make URL parameters available in $_GET. 2013-05-09 11:40:51 -04:00
Alexander Kochetov
17906e712c Application::getAuthManager() comment fix 2013-05-09 19:04:50 +04:00
Alexander Kochetov
cd33870671 Moved to framework/rbac + method names refactoring 2013-05-09 18:53:17 +04:00
Qiang Xue
aad6d7d992 refactoring. 2013-05-09 10:18:25 -04:00
Alexander Kochetov
9158e110da Auth manager init version 2013-05-09 17:21:18 +04:00
Suralc
882a611666 Removed static variable from autoload per qiangxue's suggestion 2013-05-09 13:44:37 +02:00
Carsten Brandt
2387e59c4e Renamed yii.php -> Yii.php for class, filename consitency
See https://github.com/yiisoft/yii2/issues/123#issuecomment-17657374
Issue #123
2013-05-09 13:31:43 +02:00
Carsten Brandt
776162b05e created StringHelper::basename()
In contrast to php function basename() It that always uses \ and /
as directory separator.
It is needed for use on Classnames that contain namespaces.
Fixes #192
2013-05-09 13:16:40 +02:00
Carsten Brandt
849740e6cc Fixed YiiBaseTest echo
it echoed Yii version which is not necessary
2013-05-09 13:16:40 +02:00
Antonio Ramirez
673d207253 Fix silly typo 2013-05-09 13:10:18 +02:00
Antonio Ramirez
ad25cdc906 Fix 'automated' (?) space 2013-05-09 12:51:08 +02:00
Antonio Ramirez
e2a57e4b88 Enhance ArrayHelper with popValue method 2013-05-09 12:42:50 +02:00
Alexander Makarov
ad26b7d3d1 Use Composer autoload to handle dependency class loading 2013-05-09 14:26:46 +04:00