Skip to content

Commit

Permalink
### Changed
Browse files Browse the repository at this point in the history
* Fixed the docblock for the `install` migration
* Better log statement formatting
  • Loading branch information
khalwat committed Mar 25, 2017
1 parent f5ef2f5 commit b0e251a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGLOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# generator-craftplugin Changelog

## 1.2.31 - 2017.03.25
### Changed
* Fixed the docblock for the `install` migration
* Better log statement formatting

## 1.2.30 - 2017.03.24
### Changed
* Changed the `install` migration to use `$this->driver = Craft::$app->getConfig()->getDb()->driver;`
Expand Down
9 changes: 8 additions & 1 deletion app/templates/api_version_3_0/src/_Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,14 @@ function (PluginEvent $event) {
*/
<% } else { -%>
<% } -%>
Craft::info(Craft::t('<%= pluginDirName %>', '{name} plugin loaded', ['name' => $this->name]), __METHOD__);
Craft::info(
Craft::t(
'<%= pluginDirName %>',
'{name} plugin loaded',
['name' => $this->name]
),
__METHOD__
);
}

<% if (pluginComponents.indexOf('variables') >= 0){ -%>
Expand Down
4 changes: 2 additions & 2 deletions app/templates/api_version_3_0/src/migrations/_Install.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ public function safeDown()
/**
* Creates the tables needed for the Records used by the plugin
*
* @return void
* @return bool
*/
<% } else { -%>
/**
* @return void
* @return bool
*/
<% } -%>
protected function createTables()
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "generator-craftplugin",
"version": "1.2.30",
"version": "1.2.31",
"description": "generator-craftplugin is a Yeoman generator for Craft CMS plugins",
"main": "app/index.js",
"files": [
Expand Down

0 comments on commit b0e251a

Please sign in to comment.