mirror of
https://github.com/silverstripe/recipe-plugin.git
synced 2024-10-22 14:05:55 +02:00
27 lines
565 B
PHP
27 lines
565 B
PHP
<?php
|
|
|
|
|
|
namespace SilverStripe\RecipePlugin;
|
|
|
|
use Composer\Composer;
|
|
use Composer\IO\IOInterface;
|
|
use Composer\Plugin\PluginInterface;
|
|
|
|
/**
|
|
* Register the RecipeInstaller
|
|
*/
|
|
class RecipePlugin implements PluginInterface
|
|
{
|
|
|
|
/**
|
|
* Apply plugin modifications to Composer
|
|
*
|
|
* @param Composer $composer
|
|
* @param IOInterface $io
|
|
*/
|
|
public function activate(Composer $composer, IOInterface $io)
|
|
{
|
|
$installer = new RecipeInstaller($io, $composer);
|
|
$composer->getInstallationManager()->addInstaller($installer);
|
|
}
|
|
} |