Skip to content
This repository was archived by the owner on Mar 9, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Example
"magento_connect":{
"license_uri":"http://www.gnu.org/licenses/gpl-3.0.html",
"summary":"",
"notes":"",
"channel":"community",
"php_min":"5.3.0",
"php_max":"6.0.0",
Expand Down Expand Up @@ -100,6 +101,9 @@ URI for a copy of the license text. If no value is provided the URI will default
### magento_connect summary
A brief summary of your module. If no value is provided then the `description` will be used.

### magento_connect notes
Notes related to the current release.

### magento_connect channel
Which channel should be used in magento connect.

Expand Down
2 changes: 2 additions & 0 deletions example/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
"php_min":"5.3.0",
"php_max":"6.0.0",
"stability":"beta",
"summary":"",
"notes":"",
"content":[
{
"type":"magecommunity",
Expand Down
11 changes: 11 additions & 0 deletions src/shell/packager.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public function run()
$this->_pathToComposerJson = $this->getArg('composer');
$name = $this->getModuleName();
$this->getConfig()->setData('name', $name);
$this->getConfig()->setData('notes', $this->getNotes());
$this->getConfig()->setData('channel', $this->getChannel());
$this->getConfig()->setData('license', $this->getLicense());
$this->getConfig()->setData('license_uri', $this->getLicenseUri());
Expand Down Expand Up @@ -248,6 +249,16 @@ public function getDescription()
return $this->getComposerJson()->description;
}

/**
* Get notes for the project.
*
* @return mixed
*/
public function getNotes()
{
return $this->getComposerJson()->extra->magento_connect->notes;
}

/**
* Get the stability out of composer.
*
Expand Down