Skip to content

Commit

Permalink
Modify CommandBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
rougin committed Oct 14, 2020
1 parent df66ac5 commit 926243c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/Fixture/CommandBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,13 @@ public static function create($command, $app = '', $templates = '')
$templates = __DIR__ . '/../../src/Templates';
}

$injector->delegate(Environment::class, function () use ($templates)
{
$injector->delegate('Twig\Environment', function () use ($templates) {
$loader = new FilesystemLoader($templates);

return new Environment($loader);
});

$injector->delegate('Rougin\Describe\Describe', function () use ($app)
{
$injector->delegate('Rougin\Describe\Describe', function () use ($app) {
$ci = Instance::create($app);

$ci->load->database();
Expand Down

0 comments on commit 926243c

Please sign in to comment.