Skip to content

Commit

Permalink
Support for Dframe 4 (composer#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
dusta authored and alcohol committed Sep 12, 2018
1 parent 5d181e7 commit 365ddc2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ is not needed to install packages with these frameworks:
| Craft | `craft-plugin`
| Croogo | `croogo-plugin`<br>`croogo-theme`
| Decibel | `decibel-app`
| Dframe | `dframe-module`
| DokuWiki | `dokuwiki-plugin`<br>`dokuwiki-template`
| Dolibarr | `dolibarr-module`
| Drupal | <b>`drupal-core`<br>`drupal-module`<br>`drupal-theme`</b><br>`drupal-library`<br>`drupal-profile`<br>`drupal-drush`<br>`drupal-custom-theme`<br>`drupal-custom-module`
Expand Down
10 changes: 10 additions & 0 deletions src/Composer/Installers/DframeInstaller.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace Composer\Installers;

class DframeInstaller extends BaseInstaller
{
protected $locations = array(
'module' => 'modules/{$vendor}/{$name}/',
);
}
1 change: 1 addition & 0 deletions src/Composer/Installers/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class Installer extends LibraryInstaller
'concrete5' => 'Concrete5Installer',
'craft' => 'CraftInstaller',
'croogo' => 'CroogoInstaller',
'dframe' => 'DframeInstaller',
'dokuwiki' => 'DokuWikiInstaller',
'dolibarr' => 'DolibarrInstaller',
'decibel' => 'DecibelInstaller',
Expand Down
2 changes: 2 additions & 0 deletions tests/Composer/Installers/Test/InstallerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ public function dataForTestSupport()
array('croogo-plugin', true),
array('croogo-theme', true),
array('decibel-app', true),
array('dframe-module', true),
array('dokuwiki-plugin', true),
array('dokuwiki-template', true),
array('drupal-core', true),
Expand Down Expand Up @@ -298,6 +299,7 @@ public function dataForTestInstallPath()
array('croogo-plugin', 'Plugin/Sitemaps/', 'fahad19/sitemaps'),
array('croogo-theme', 'View/Themed/Readable/', 'rchavik/readable'),
array('decibel-app', 'app/someapp/', 'author/someapp'),
array('dframe-module', 'modules/author/mymodule/', 'author/mymodule'),
array('dokuwiki-plugin', 'lib/plugins/someplugin/', 'author/someplugin'),
array('dokuwiki-template', 'lib/tpl/sometemplate/', 'author/sometemplate'),
array('dolibarr-module', 'htdocs/custom/my_module/', 'shama/my_module'),
Expand Down

0 comments on commit 365ddc2

Please sign in to comment.