Skip to content

Commit 236a390

Browse files
Merge pull request #318 from jfarthing84/vanilla
Add support for Vanilla Forums
2 parents 4a464dd + badbb85 commit 236a390

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ is not needed to install packages with these frameworks:
9090
| Tusk | `tusk-task`<br>`tusk-command`<br>`tusk-asset`
9191
| TYPO3 Flow | `typo3-flow-package`<br>`typo3-flow-framework`<br>`typo3-flow-plugin`<br>`typo3-flow-site`<br>`typo3-flow-boilerplate`<br>`typo3-flow-build`
9292
| TYPO3 CMS | `typo3-cms-extension` (Deprecated in this package, use the [TYPO3 CMS Installers](https://packagist.org/packages/typo3/cms-composer-installers) instead)
93+
| Vanilla | `vanilla-plugin`<br>`vanilla-theme`
9394
| Wolf CMS | `wolfcms-plugin`
9495
| WordPress | <b>`wordpress-plugin`<br>`wordpress-theme`</b><br>`wordpress-muplugin`
9596
| YAWIK | `yawik-module`
@@ -191,7 +192,7 @@ not be inflected.
191192
## Contribute!
192193

193194
* [Fork and clone](https://help.github.com/articles/fork-a-repo).
194-
* Run the command `php composer.phar install` to install the dependencies.
195+
* Run the command `php composer.phar install` to install the dependencies.
195196
This will also install the dev dependencies. See [Composer](https://getcomposer.org/doc/03-cli.md#install).
196197
* Use the command `phpunit` to run the tests. See [PHPUnit](http://phpunit.de).
197198
* Create a branch, commit, push and send us a

src/Composer/Installers/Installer.php

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ class Installer extends LibraryInstaller
7575
'tusk' => 'TuskInstaller',
7676
'typo3-cms' => 'TYPO3CmsInstaller',
7777
'typo3-flow' => 'TYPO3FlowInstaller',
78+
'vanilla' => 'VanillaInstaller',
7879
'whmcs' => 'WHMCSInstaller',
7980
'wolfcms' => 'WolfCMSInstaller',
8081
'wordpress' => 'WordPressInstaller',
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
namespace Composer\Installers;
3+
4+
class VanillaInstaller extends BaseInstaller
5+
{
6+
protected $locations = array(
7+
'plugin' => 'plugins/{$name}/',
8+
'theme' => 'themes/{$name}/',
9+
);
10+
}

tests/Composer/Installers/Test/InstallerTest.php

+4
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ public function dataForTestSupport()
180180
array('tusk-asset', true),
181181
array('typo3-flow-plugin', true),
182182
array('typo3-cms-extension', true),
183+
array('vanilla-plugin', true),
184+
array('vanilla-theme', true),
183185
array('whmcs-gateway', true),
184186
array('wolfcms-plugin', true),
185187
array('wordpress-plugin', true),
@@ -327,6 +329,8 @@ public function dataForTestInstallPath()
327329
array('typo3-flow-package', 'Packages/Application/my_package/', 'shama/my_package'),
328330
array('typo3-flow-build', 'Build/my_package/', 'shama/my_package'),
329331
array('typo3-cms-extension', 'typo3conf/ext/my_extension/', 'shama/my_extension'),
332+
array('vanilla-plugin', 'plugins/my_plugin/', 'shama/my_plugin'),
333+
array('vanilla-theme', 'themes/my_theme/', 'shama/my_theme'),
330334
array('whmcs-gateway', 'modules/gateways/gateway_name/', 'vendor/gateway_name'),
331335
array('wolfcms-plugin', 'wolf/plugins/my_plugin/', 'shama/my_plugin'),
332336
array('wordpress-plugin', 'wp-content/plugins/my_plugin/', 'shama/my_plugin'),

0 commit comments

Comments
 (0)