2017-07-07 05:47:49 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace SilverStripe\RecipePlugin;
|
|
|
|
|
|
|
|
use Composer\Command\BaseCommand;
|
|
|
|
use Composer\Plugin\Capability\CommandProvider;
|
|
|
|
|
|
|
|
class RecipeCommandProvider implements CommandProvider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Retrieves an array of commands
|
|
|
|
*
|
|
|
|
* @return BaseCommand[]
|
|
|
|
*/
|
|
|
|
public function getCommands()
|
|
|
|
{
|
|
|
|
return [
|
2017-07-10 02:22:15 +02:00
|
|
|
new RequireRecipeCommand(),
|
|
|
|
new UpdateRecipeCommand(),
|
2017-07-07 05:47:49 +02:00
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|