Skip to content

Instantly share code, notes, and snippets.

@alnutile
Last active June 17, 2017 00:39
Show Gist options
  • Save alnutile/d248080052d2f600b2e035e83607c599 to your computer and use it in GitHub Desktop.
Save alnutile/d248080052d2f600b2e035e83607c599 to your computer and use it in GitHub Desktop.
<?php
use Symfony\Component\Console\Helper\HelperSet;
use Symfony\Component\Console\Helper\QuestionHelper;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Question\ConfirmationQuestion;
load_dotenv();
$app = new Silly\Edition\Pimple\Application();
$app->getContainer()['config'] = function() use ($app) {
return config();
};
$app->getContainer()[\Alnutile\Example\Application::class] = function() use ($app) {
$core = new \Alnutile\Example\Application($app);
return $core;
};
$app->getContainer()[\Alnutile\Example\SkeletonClass::class] = function() use ($app) {
$skel = new \Alnutile\Example\SkeletonClass();
return $skel;
};
$app->getContainer()['skel'] = $app->getContainer()[\Alnutile\Example\SkeletonClass::class];
$app->getContainer()['app'] = $app->getContainer()[\Alnutile\Example\Application::class];
$app->getContainer()['output'] = function() use ($app) {
return new Symfony\Component\Console\Output\ConsoleOutput();
};
return $app;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment