Skip to content

Instantly share code, notes, and snippets.

@samjarrett
Last active December 26, 2015 17:59
Show Gist options
  • Save samjarrett/09e4427bf58bf12fc646 to your computer and use it in GitHub Desktop.
Save samjarrett/09e4427bf58bf12fc646 to your computer and use it in GitHub Desktop.
#melbsf2 Symfony Components: Using Console component (see http://samjarrett.github.io/Symfony2-Components-Presentation/pres.html)
<?php
$loader = require(__DIR__.'/vendor/autoload.php');
// Do some bootstrapping of your application
use Symfony\Component\Console\Application;
$application = new Application;
$application->add(new \MyProject\Command\SomeCommand);
$application->run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment