Last active
June 17, 2017 00:39
-
-
Save alnutile/d248080052d2f600b2e035e83607c599 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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