Skip to content

Commit

Permalink
Merge pull request #533 from sangnguyenplus/main
Browse files Browse the repository at this point in the history
Add Botble Installer
  • Loading branch information
Seldaek authored Jun 24, 2024
2 parents 89a72aa + 346222b commit 1313807
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`<br>`botble-theme`
| AnnotateCms | `annotatecms-module`<br>`annotatecms-component`<br>`annotatecms-service`
| Bitrix | `bitrix-module` (deprecated) <br>`bitrix-component` (deprecated) <br>`bitrix-theme` (deprecated) <br><br> `bitrix-d7-module` <br> `bitrix-d7-component` <br> `bitrix-d7-template`
| CakePHP 2+ | **`cakephp-plugin`**
Expand Down
12 changes: 12 additions & 0 deletions src/Composer/Installers/BotbleInstaller.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

namespace Composer\Installers;

class BotbleInstaller extends BaseInstaller
{
/** @var array<string, string> */
protected $locations = array(
'plugin' => 'platform/plugins/{$name}/',
'theme' => 'platform/themes/{$name}/',
);
}
1 change: 1 addition & 0 deletions src/Composer/Installers/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class Installer extends LibraryInstaller
'agl' => 'AglInstaller',
'annotatecms' => 'AnnotateCmsInstaller',
'bitrix' => 'BitrixInstaller',
'botble' => 'BotbleInstaller',
'bonefish' => 'BonefishInstaller',
'cakephp' => 'CakePHPInstaller',
'chef' => 'ChefInstaller',
Expand Down
4 changes: 4 additions & 0 deletions tests/Composer/Installers/Test/InstallerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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'),
Expand Down

0 comments on commit 1313807

Please sign in to comment.