Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FuelPHP: allow core, modules and packages to be installed #57

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ custom installer to handle it.
* CakePHP 2+ `cakephp-`
* CodeIgniter `codeigniter-`
* Drupal `drupal-`
* FuelPHP `fuelphp-`
* FuelPHP v1.x `fuel-`
* Joomla `joomla-`
* Kohana `kohana-`
* Laravel `laravel-`
Expand Down Expand Up @@ -82,8 +82,10 @@ So submit your packages to [packagist.org](http://packagist.org)!
* **drupal-theme**
* drupal-profile
* drupal-drush
* FuelPHP
* fuelphp-module
* FuelPHP v1.x
* fuel-core
* fuel-module
* fuel-package
* Joomla
* joomla-component
* joomla-module
Expand Down
11 changes: 11 additions & 0 deletions src/Composer/Installers/FuelInstaller.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
namespace Composer\Installers;

class FuelInstaller extends BaseInstaller
{
protected $locations = array(
'core' => 'fuel/core/',
'module' => 'fuel/app/modules/{$name}/',
'package' => 'fuel/packages/{$name}/',
);
}
9 changes: 0 additions & 9 deletions src/Composer/Installers/FuelPHPInstaller.php

This file was deleted.

2 changes: 1 addition & 1 deletion src/Composer/Installers/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Installer extends LibraryInstaller
'cakephp' => 'CakePHPInstaller',
'codeigniter' => 'CodeIgniterInstaller',
'drupal' => 'DrupalInstaller',
'fuelphp' => 'FuelPHPInstaller',
'fuel' => 'FuelInstaller',
'joomla' => 'JoomlaInstaller',
'kohana' => 'KohanaInstaller',
'laravel' => 'LaravelInstaller',
Expand Down
8 changes: 6 additions & 2 deletions tests/Composer/Installers/Test/InstallerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ public function dataForTestSupport()
array('cakephp-app', true),
array('codeigniter-app', true),
array('drupal-module', true),
array('fuelphp-module', true),
array('fuel-core', true),
array('fuel-module', true),
array('fuel-package', true),
array('joomla-library', true),
array('kohana-module', true),
array('laravel-library', true),
Expand Down Expand Up @@ -138,7 +140,9 @@ public function dataForTestInstallPath()
array('drupal-theme', 'themes/my_module/', 'shama/my_module'),
array('drupal-profile', 'profiles/my_module/', 'shama/my_module'),
array('drupal-drush', 'drush/my_module/', 'shama/my_module'),
array('fuelphp-module', 'modules/my_package/', 'shama/my_package'),
array('fuel-core', 'fuel/core/', 'fuel/core'),
array('fuel-module', 'fuel/app/modules/module/', 'fuel/module'),
array('fuel-package', 'fuel/packages/orm/', 'fuel/orm'),
array('joomla-plugin', 'plugins/my_plugin/', 'shama/my_plugin'),
array('kohana-module', 'modules/my_package/', 'shama/my_package'),
array('laravel-library', 'libraries/my_package/', 'shama/my_package'),
Expand Down