Skip to content

Commit

Permalink
[BUGFIX] fix bom task with grumphp 0.13.0 (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kanti committed Feb 14, 2018
1 parent 7f358d6 commit 65d2f9c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/ExtensionLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

use GrumPHP\Extension\ExtensionInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Reference;

/**
* Class ExtensionLoader
Expand All @@ -25,9 +26,9 @@ class ExtensionLoader implements ExtensionInterface
public function load(ContainerBuilder $container)
{
return $container->register('task.plus_bom_fixer', BomFixerTask::class)
->addArgument($container->get('config'))
->addArgument($container->get('process_builder'))
->addArgument($container->get('formatter.raw_process'))
->addArgument(new Reference('config'))
->addArgument(new Reference('process_builder'))
->addArgument(new Reference('formatter.raw_process'))
->addTag('grumphp.task', ['config' => 'plus_bom_fixer']);
}
}

0 comments on commit 65d2f9c

Please sign in to comment.