public function run_install()
 {
     ob_start();
     $input = new ArgvInput(array());
     $output = new ConsoleOutput();
     $helper = new HelperSet();
     $config = new Config();
     $output->setVerbosity(0);
     $io = new ConsoleIO($input, $output, $helper);
     $composer = Factory::create($io);
     $composer->setConfig($config);
     $update = new InstallCommand();
     $update->setComposer($composer);
     $out = $update->run($input, $output);
     ob_end_clean();
     return $out;
 }
 /**
  * @param InputInterface $input
  * @param OutputInterface $output
  */
 private function doAssetsDump(InputInterface $input, OutputInterface $output)
 {
     $silentOutput = new ConsoleOutput();
     $silentOutput->setVerbosity(OutputInterface::VERBOSITY_QUIET);
     $output->write('<info>Dumping exposed routes...</info>    ');
     $this->runCommand('fos:js-routing:dump', $input, $silentOutput);
     $output->writeln('OK');
     $output->write('<info>Dumping assets...</info>    ');
     $this->runCommand('assetic:dump', $input, $silentOutput);
     $output->writeln('OK');
 }
<?php

/**
 * @author Oliver Lorenz <*****@*****.**>
 * @since 2014-10-18
 */
require_once dirname(__FILE__) . "/vendor/autoload.php";
use Symfony\Component\Console\Application;
use Symfony\Component\Console\Output\ConsoleOutput;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Config\FileLocator;
// mock the Kernel or create one depending on your needs
try {
    $application = new Application();
    $output = new ConsoleOutput();
    $output->setVerbosity(OutputInterface::VERBOSITY_DEBUG);
    $application->add(new \command\TaskCreate());
    $application->add(new \command\TaskMove());
    $application->run(null, $output);
} catch (\Exception $exception) {
    throw $exception;
    //
}