diff --git a/README.md b/README.md index ace984a7..a6b34f25 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,7 @@ all vendor code in the vendor directory, and not requiring custom installer code | Cockpit | `cockpit-module` | CodeIgniter | `codeigniter-library`
`codeigniter-third-party`
`codeigniter-module` | concrete5 | `concrete5-core`
`concrete5-package`
`concrete5-theme`
`concrete5-block`
`concrete5-update` +| ConcreteCMS | `concretecms-core`
`concretecms-package`
`concretecms-theme`
`concretecms-block`
`concretecms-update` | Croogo | `croogo-plugin`
`croogo-theme` | Decibel | `decibel-app` | Dframe | `dframe-module` diff --git a/composer.json b/composer.json index 5745d3bc..a12307d0 100644 --- a/composer.json +++ b/composer.json @@ -14,6 +14,7 @@ "Cockpit", "CodeIgniter", "concrete5", + "ConcreteCMS", "Croogo", "DokuWiki", "Dolibarr", diff --git a/src/Composer/Installers/ConcreteCMSInstaller.php b/src/Composer/Installers/ConcreteCMSInstaller.php new file mode 100644 index 00000000..b6e7f009 --- /dev/null +++ b/src/Composer/Installers/ConcreteCMSInstaller.php @@ -0,0 +1,15 @@ + */ + protected $locations = array( + 'core' => 'concrete/', + 'block' => 'application/blocks/{$name}/', + 'package' => 'packages/{$name}/', + 'theme' => 'application/themes/{$name}/', + 'update' => 'updates/{$name}/', + ); +} diff --git a/src/Composer/Installers/Installer.php b/src/Composer/Installers/Installer.php index 67a73e9d..b7c1ef06 100644 --- a/src/Composer/Installers/Installer.php +++ b/src/Composer/Installers/Installer.php @@ -34,6 +34,7 @@ class Installer extends LibraryInstaller 'cockpit' => 'CockpitInstaller', 'codeigniter' => 'CodeIgniterInstaller', 'concrete5' => 'Concrete5Installer', + 'concretecms' => 'ConcreteCMSInstaller', 'croogo' => 'CroogoInstaller', 'dframe' => 'DframeInstaller', 'dokuwiki' => 'DokuWikiInstaller', diff --git a/tests/Composer/Installers/Test/InstallerTest.php b/tests/Composer/Installers/Test/InstallerTest.php index 1345c8fd..b497533e 100644 --- a/tests/Composer/Installers/Test/InstallerTest.php +++ b/tests/Composer/Installers/Test/InstallerTest.php @@ -96,6 +96,11 @@ public function supportsProvider(): array array('concrete5-theme', true), array('concrete5-core', true), array('concrete5-update', true), + array('concretecms-block', true), + array('concretecms-package', true), + array('concretecms-theme', true), + array('concretecms-core', true), + array('concretecms-update', true), array('croogo-plugin', true), array('croogo-theme', true), array('decibel-app', true), @@ -287,6 +292,11 @@ public function installPathProvider(): array array('concrete5-theme', 'application/themes/concrete5_theme/', 'remo/concrete5_theme'), array('concrete5-core', 'concrete/', 'concrete5/core'), array('concrete5-update', 'updates/concrete5/', 'concrete5/concrete5'), + array('concretecms-block', 'application/blocks/concretecms_block/', 'remo/concretecms_block'), + array('concretecms-package', 'packages/concretecms_package/', 'remo/concretecms_package'), + array('concretecms-theme', 'application/themes/concretecms_theme/', 'remo/concretecms_theme'), + array('concretecms-core', 'concrete/', 'concretecms/core'), + array('concretecms-update', 'updates/concretecms/', 'concretecms/concretecms'), array('croogo-plugin', 'Plugin/Sitemaps/', 'fahad19/sitemaps'), array('croogo-theme', 'View/Themed/Readable/', 'rchavik/readable'), array('decibel-app', 'app/someapp/', 'author/someapp'),