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

Adding YiiInstaller #61

Closed
wants to merge 4 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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -34,6 +34,7 @@ custom installer to handle it.
* Symfony1 `symfony1-` * Symfony1 `symfony1-`
* TYPO3 Flow `typo3-flow-` * TYPO3 Flow `typo3-flow-`
* WordPress `wordpress-` * WordPress `wordpress-`
* Yii `yii-`
* Zend `zend-` * Zend `zend-`


**Natively Supported Frameworks**: **Natively Supported Frameworks**:
Expand Down Expand Up @@ -126,6 +127,9 @@ So submit your packages to [packagist.org](http://packagist.org)!
* WordPress * WordPress
* **wordpress-plugin** * **wordpress-plugin**
* **wordpress-theme** * **wordpress-theme**
* Yii
* yii-extension
* yii-module
* Zend * Zend
* zend-library * zend-library
* zend-extra * zend-extra
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -7,7 +7,7 @@
"installer", "cakephp", "laravel", "kohana", "installer", "cakephp", "laravel", "kohana",
"li3", "lithium", "mako","fuelphp", "li3", "lithium", "mako","fuelphp",
"codeigniter", "symfony", "phpbb", "ppi", "codeigniter", "symfony", "phpbb", "ppi",
"joomla", "wordpress", "drupal", "zend", "joomla", "wordpress", "drupal", "yii", "zend",
"silverstripe", "agl", "TYPO3 Flow", "TYPO3 Neos" "silverstripe", "agl", "TYPO3 Flow", "TYPO3 Neos"
], ],
"homepage": "http://composer.github.com/installers/", "homepage": "http://composer.github.com/installers/",
Expand Down
1 change: 1 addition & 0 deletions src/Composer/Installers/Installer.php
Expand Up @@ -29,6 +29,7 @@ class Installer extends LibraryInstaller
'silverstripe' => 'SilverStripeInstaller', 'silverstripe' => 'SilverStripeInstaller',
'symfony1' => 'Symfony1Installer', 'symfony1' => 'Symfony1Installer',
'wordpress' => 'WordPressInstaller', 'wordpress' => 'WordPressInstaller',
'yii' => 'YiiInstaller',
'zend' => 'ZendInstaller', 'zend' => 'ZendInstaller',
'typo3-flow' => 'TYPO3FlowInstaller' 'typo3-flow' => 'TYPO3FlowInstaller'
); );
Expand Down
10 changes: 10 additions & 0 deletions src/Composer/Installers/YiiInstaller.php
@@ -0,0 +1,10 @@
<?php
namespace Composer\Installers;

class YiiInstaller extends BaseInstaller
{
protected $locations = array(
'extension' => 'protected/extensions/{$name}/',
'module' => 'protected/modules/{$name}/',
);
}
4 changes: 4 additions & 0 deletions tests/Composer/Installers/Test/InstallerTest.php
Expand Up @@ -106,6 +106,8 @@ public function dataForTestSupport()
array('symfony1-plugin', true), array('symfony1-plugin', true),
array('typo3-flow-plugin', true), array('typo3-flow-plugin', true),
array('wordpress-plugin', true), array('wordpress-plugin', true),
array('yii-extension', true),
array('yii-module', true),
array('zend-library', true), array('zend-library', true),
); );
} }
Expand Down Expand Up @@ -161,6 +163,8 @@ public function dataForTestInstallPath()
array('typo3-flow-package', 'Packages/Application/my_package/', 'shama/my_package'), array('typo3-flow-package', 'Packages/Application/my_package/', 'shama/my_package'),
array('typo3-flow-build', 'Build/my_package/', 'shama/my_package'), array('typo3-flow-build', 'Build/my_package/', 'shama/my_package'),
array('wordpress-plugin', 'wp-content/plugins/my_plugin/', 'shama/my_plugin'), array('wordpress-plugin', 'wp-content/plugins/my_plugin/', 'shama/my_plugin'),
array('yii-extension', 'protected/extensions/my_yii_extension/', 'shama/my_yii_extension'),
array('yii-module', 'protected/modules/my_yii_module/', 'shama/my_yii_module'),
array('zend-extra', 'extras/library/', 'shama/zend_test'), array('zend-extra', 'extras/library/', 'shama/zend_test'),
); );
} }
Expand Down