private static function createApplication(IOInterface $io, string $config) : Application
    {
        $app = new Application();
        $app->setAutoExit(false);
        $app->setConfigFile($config);
        $app->setProxyIO($io);

        $install = new Install();
        $install->setIO($app->getIO());
        $app->add($install);

        $configuration = new Configuration();
        $configuration->setIO($app->getIO());
        $app->add($configuration);
        return $app;
    }
private static function createApplication(IOInterface $io, string $config) : Application
    {
        $app = new Application();
        $app->setAutoExit(false);
        $app->setConfigFile($config);
        $app->setProxyIO($io);

        $install = new Install();
        $install->setIO($app->getIO());
        $app->add($install);

        $configuration = new Configuration();
        $configuration->setIO($app->getIO());
        $app->add($configuration);
        return $app;
    }
private static function createApplication ( IOInterface $ io , string $ config ) : Application { $ app = new Application ( ) ; $ app -> setAutoExit ( false ) ; $ app -> setConfigFile ( $ config ) ; $ app -> setProxyIO ( $ io ) ; $ install = new Install ( ) ; $ install -> setIO ( $ app -> getIO ( ) ) ; $ app -> add ( $ install ) ; $ configuration = new Configuration ( ) ; $ configuration -> setIO ( $ app -> getIO ( ) ) ; $ app -> add ( $ configuration ) ; return $ app ; }
Create a CaptainHook Composer application

@param  \Composer\IO\IOInterface $io
@param  string                   $config
@return \CaptainHook\App\Composer\Application
Create a CaptainHook Composer application