octicon-git-branch(16/) Commit Graph

339 Commits

Author SHA1 Message Date
Alexander Makarov
3a207b7559 Fixes #9323: Fixed yii\console\controllers\MessageController not using database connection specified in config 2015-09-05 01:58:03 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Alexander Makarov
a6b8a30998 Removed unused "use" 2015-08-04 15:38:31 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Carsten Brandt
681db52ba6 refactored SchemaBuilder
- rename class to ColumnSchemaBuilder as this is more appropriate
- changed internal organisation to match how the rest of schema related classes work
  - the ColumnSchemaBuilder is now created the same way as QueryBuilder is
- removed static call magic and method annotations, now real methods are called as they are
- the whole code works on objects in a db context now instead of setting database connection in global state
- trait is now used by Migration by default but can be used in other contexts as well

Migration usage is now as follows:

```php
$this->createTable('example_table', [
  'id' => $this->primaryKey(),
  'name' => $this->string(64)->notNull(),
  'type' => $this->integer()->notNull()->defaultValue(10),
  'description' => $this->text(),
  'rule_name' => $this->string(64),
  'data' => $this->text(),
  'created_at' => $this->datetime()->notNull(),
  'updated_at' => $this->datetime(),
]);
```
2015-08-03 23:25:50 +02:00 octicon-file-diff(16/) octicon-file-code(16/)
Carsten Brandt
a2568d1ec8 updated some comments and @since annotations 2015-08-02 19:56:49 +02:00 octicon-file-diff(16/) octicon-file-code(16/)
Carsten Brandt
6d9fe671de various code style and whitespace adjustments 2015-08-02 00:27:19 +02:00 octicon-file-diff(16/) octicon-file-code(16/)
Carsten Brandt
9aac3966a6 fixed typo in error message
#9154
2015-07-19 17:42:41 +02:00 octicon-file-diff(16/) octicon-file-code(16/)
Alexander Pletnev
9ab57780ab close #9149 2015-07-19 18:27:24 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Alexander Makarov
b53f50a762 Reverted #9140
See discussion at ef27d820d2
2015-07-18 22:08:47 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Alexander Makarov
ef27d820d2 #9140: better fix for IDEs 2015-07-17 15:42:29 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Alexander Makarov
c115c677e6 Fixed #9141: Fixed docs for migrate/history 2015-07-17 14:27:09 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Alexander Makarov
105100fe79 Merge pull request #9140 from matthewyang/fix-redefine-parent-property-controller
Removed redefinition of Application::$controller from web/console
2015-07-17 08:29:33 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
matthewyang
fed6f35627 remove redefined parent property 2015-07-17 12:23:27 +08:00 octicon-file-diff(16/) octicon-file-code(16/)
Carsten Brandt
a5c92eb4cb register STDIN, STDOUT, and STDERR if not defined by PHP
this ensures that they are defined if needed and reduces redundant
code in the entry script.

close #6853
2015-07-11 17:46:32 +02:00 octicon-file-diff(16/) octicon-file-code(16/)
Matvey Vasenin
da941a7675 Improved SchemaBuilder implementation 2015-07-08 15:40:09 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Alexander Mohorev
68c30c1034 Replace aliases of functions 2015-06-29 22:59:22 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Alexander Mohorev
39cb131984 Spelling and sc fixes 2015-06-16 23:53:12 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Alexander Makarov
63f9ec4da6 Fixed formatting 2015-06-10 13:39:47 +02:00 octicon-file-diff(16/) octicon-file-code(16/)
Alexander Makarov
c0c3fa79af Merge branch '8625-message-controller-mark-unused' of https://github.com/marius7383/yii2 into marius7383-8625-message-controller-mark-unused
Conflicts:
	framework/CHANGELOG.md
2015-06-10 13:33:20 +02:00 octicon-file-diff(16/) octicon-file-code(16/)
Alexander Mohorev
d34d890a32 PSR-2 if-else statement 2015-06-09 00:10:09 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Alexander Mohorev
ae42a054bb PSR-2 spaces, commas, etc 2015-06-09 00:05:06 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Alexander Mohorev
fcb45848dd The formatting value must be array 2015-06-08 16:04:15 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Marius Ebel
fff61bf99b - Reworked order of parameters in order to keep backwards compatibility
- Update statement of unused messages in DB now depends on $markUnused parameter
2015-06-08 10:11:15 +02:00 octicon-file-diff(16/) octicon-file-code(16/)
Marius Ebel
0dcb50db5e - i18n MessageController now supports config parameter 'markUnused' that turns adding @@s either on or off 2015-06-08 10:11:13 +02:00 octicon-file-diff(16/) octicon-file-code(16/)
Philippe Gaultier
4851d7f9e3 Fixes #8574: Added yii\console\controllers\MessageController support .pot file creation 2015-05-31 12:40:46 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Carsten Brandt
47bcd020ff fixed bug in console controller
pass correct action name to options when $id is empty (default action)
2015-05-27 12:47:09 +02:00 octicon-file-diff(16/) octicon-file-code(16/)
Klimov Paul
adb0460ee1 yii\console\controllers\MessageController now sorts created messages, even if there is no new one, while saving to PHP file 2015-05-13 16:08:36 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Klimov Paul
72ec914992 yii\console\controllers\MessageController improved allowing extraction of nested translator calls 2015-05-13 15:49:00 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Klimov Paul
a0b5652673 yii\console\controllers\MessageController::saveMessagesToDb() updated to use yii\db\Schema::insert() 2015-04-24 15:34:46 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Carsten Brandt
ef662b57be added missing @since annotations 2015-04-24 12:09:40 +02:00 octicon-file-diff(16/) octicon-file-code(16/)
Sergey Gonimar
3872c6c565 Fix migrate/down order
Migrations were applied at the same time. This cause invalid sort order while downgrade.

Command `yii migrate `

Output:
```
Yii Migration Tool (based on Yii v2.0.4-dev)

Total 2 new migrations to be applied:
        m150402_075534_initial
        m150402_075544_feedback
```

Command `yii migrate/down 2`

```
Yii Migration Tool (based on Yii v2.0.4-dev)

Total 2 migrations to be reverted:
        m150402_075534_initial
        m150402_075544_feedback
```

In databasse
```
"m000000_000000_base";1428382302
"m150402_075534_initial";1428388855           <----
"m150402_075544_feedback";1428388855     <----
```
2015-04-07 12:01:09 +05:00 octicon-file-diff(16/) octicon-file-code(16/)
Paul Klimov
378937f8d5 yii\console\controllers\AssetController provides dependency trace in case bundle circular dependency detected 2015-04-03 19:22:42 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Klimov Paul
97c0ffc836 Creating target dir at yii\console\controllers\AssetController::buildTarget() refactored 2015-04-03 12:45:44 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Klimov Paul
e9ecdf88f9 Fixed yii\console\controllers\AssetController does not create missing folders for the target bundles 2015-04-03 12:04:57 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Alexander Makarov
1713a99c79 Fixes #7924: Migrations in history are now ordered by time applied allowing to roll back in reverse order no matter how these were applied 2015-03-31 16:56:49 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Alexander Makarov
b7a29e38d9 Fixes #6895: Added ignoreCategories config option for message command to ignore categories specified 2015-03-06 21:51:42 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Carsten Brandt
08e0143c16 created Console::wrapText() to imrove console help output on small screens 2015-03-05 21:19:42 +01:00 octicon-file-diff(16/) octicon-file-code(16/)
callmez
f60da03e07 Fixes #7562, fixes #6841: yii help now lists all sub-commands by default 2015-03-05 19:17:22 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Paul Melekhov
86891f9f82 Fixes #7358: Fix trimming PHPDoc prefix with TAB indent in yii\console\Controller::parseDocCommentSummary() 2015-02-19 22:26:30 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Carsten Brandt
2b6de9665e adjusted docs about #7347 2015-02-19 13:44:05 +01:00 octicon-file-diff(16/) octicon-file-code(16/)
lynicidn
84052d15df Used yii\di\Instance::ensure() in MigrateController instead of doing the same without it 2015-02-19 02:28:09 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
lynicidn
a71423cf2a Fixes #7269: yii\console\controllers\BaseMigrateController now throws exception if directory specified doesn't exist and action isn't create 2015-02-19 02:23:45 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Klimov Paul
690b6f7e6c 'Dividing asset bundles into group' docs added 2015-02-17 12:01:06 +02:00 octicon-file-diff(16/) octicon-file-code(16/)
Alexander Makarov
6481d13494 Optimized checks order in conditions 2015-02-08 17:56:36 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Alexander Makarov
af7ae33d5b Use (array) cast instead of !is_array check for both readability and performance 2015-02-08 17:56:14 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Klimov Paul
5bda2fe073 yii\console\controllers\AssetController now correctly handles relative image URLs if source and target CSS are under same directory 2015-01-29 15:44:05 +02:00 octicon-file-diff(16/) octicon-file-code(16/)
Alexander Makarov
e606617a8e Better checks for empty string in MessageController 2015-01-28 00:23:27 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Carsten Brandt
aef8fdffde fixed indentation in Cache Controller 2015-01-18 14:09:26 +01:00 octicon-file-diff(16/) octicon-file-code(16/)
Klimov Paul
9b9b361aff Doc comments for yii\console\controllers\AssetController extended 2015-01-06 17:14:23 +02:00 octicon-file-diff(16/) octicon-file-code(16/)
Klimov Paul
94f702fe6e yii\console\controllers\AssetController now handles bundle files from external resources properly 2015-01-06 17:03:39 +02:00 octicon-file-diff(16/) octicon-file-code(16/)
Carsten Brandt
119c302033 fixed issue with UTF-8 characters in help description parsing
fixes #6691
2014-12-30 17:33:53 +01:00 octicon-file-diff(16/) octicon-file-code(16/)