diff --git a/README.md b/README.md index c32e96ff..722dc59a 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,7 @@ all vendor code in the vendor directory, and not requiring custom installer code | Attogram | `attogram-module` | AGL | `agl-module` | Bonefish | `bonefish-package` +| Botble | `botble-plugin`
`botble-theme` | AnnotateCms | `annotatecms-module`
`annotatecms-component`
`annotatecms-service` | Bitrix | `bitrix-module` (deprecated)
`bitrix-component` (deprecated)
`bitrix-theme` (deprecated)

`bitrix-d7-module`
`bitrix-d7-component`
`bitrix-d7-template` | CakePHP 2+ | **`cakephp-plugin`** diff --git a/src/Composer/Installers/BotbleInstaller.php b/src/Composer/Installers/BotbleInstaller.php new file mode 100644 index 00000000..35e1cb8d --- /dev/null +++ b/src/Composer/Installers/BotbleInstaller.php @@ -0,0 +1,12 @@ + */ + protected $locations = array( + 'plugin' => 'platform/plugins/{$name}/', + 'theme' => 'platform/themes/{$name}/', + ); +} diff --git a/src/Composer/Installers/Installer.php b/src/Composer/Installers/Installer.php index 67a73e9d..08f4deac 100644 --- a/src/Composer/Installers/Installer.php +++ b/src/Composer/Installers/Installer.php @@ -26,6 +26,7 @@ class Installer extends LibraryInstaller 'agl' => 'AglInstaller', 'annotatecms' => 'AnnotateCmsInstaller', 'bitrix' => 'BitrixInstaller', + 'botble' => 'BotbleInstaller', 'bonefish' => 'BonefishInstaller', 'cakephp' => 'CakePHPInstaller', 'chef' => 'ChefInstaller', diff --git a/tests/Composer/Installers/Test/InstallerTest.php b/tests/Composer/Installers/Test/InstallerTest.php index 1345c8fd..37a79be1 100644 --- a/tests/Composer/Installers/Test/InstallerTest.php +++ b/tests/Composer/Installers/Test/InstallerTest.php @@ -79,6 +79,8 @@ public function supportsProvider(): array array('bitrix-module', true), array('bitrix-component', true), array('bitrix-theme', true), + array('botble-plugin', true), + array('botble-theme', true), array('bonefish-package', true), array('cakephp', false), array('cakephp-', false), @@ -275,6 +277,8 @@ public function installPathProvider(): array array('bitrix-d7-module', 'bitrix/modules/author.my_module/', 'author/my_module'), array('bitrix-d7-component', 'bitrix/components/author/my_component/', 'author/my_component'), array('bitrix-d7-template', 'bitrix/templates/author_my_template/', 'author/my_template'), + array('botble-plugin', 'platform/plugins/my_plugin/', 'author/my_plugin'), + array('botble-theme', 'platform/themes/my_theme/', 'author/my_theme'), array('bonefish-package', 'Packages/bonefish/package/', 'bonefish/package'), array('cakephp-plugin', 'Plugin/Ftp/', 'shama/ftp'), array('chef-cookbook', 'Chef/mre/my_cookbook/', 'mre/my_cookbook'),