for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of CaptainHook.
*
* (c) Sebastian Feldmann <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace sebastianfeldmann\CaptainHook\Composer;
use Composer\Script\Event;
* Class Cmd
* @package CaptainHook
* @author Sebastian Feldmann <[email protected]>
* @link https://github.com/sebastianfeldmann/captainhook
* @since Class available since Release 0.9.0
abstract class Cmd
{
* Gets called by composer after a successful package installation.
* @param \Composer\Script\Event $event
* @param string $config
public static function configure(Event $event, $config = null)
$app = new Application();
$app->setAutoExit(false);
$app->setConfigFile($config);
$app->setProxyIO($event->getIO());
$app->run();
}