Skip to content

Commit

Permalink
Rename rulerz.compilation_target tag to rulerz.target
Browse files Browse the repository at this point in the history
  • Loading branch information
Kévin Gomez committed Feb 5, 2017
1 parent 4183ef2 commit ec1652c
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions DependencyInjection/Compiler/TargetsPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ public function process(ContainerBuilder $container)
{
$engineDefinition = $container->getDefinition('rulerz');

foreach ($container->findTaggedServiceIds('rulerz.compilation_target') as $id => $attributes) {
$engineDefinition->addMethodCall('registerCompilationTarget', array(new Reference($id)));
foreach ($container->findTaggedServiceIds('rulerz.target') as $id => $attributes) {
$engineDefinition->addMethodCall('registerCompilationTarget', [new Reference($id)]);
}
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ services:
operator.array.like:
class: RulerZ\Operator\ArrayExecutor\Like
tags:
- { name: rulerz.operator, compilation_target: rulerz.compilation_target.native, operator: like }
- { name: rulerz.operator, compilation_target: rulerz.target.native, operator: like }
```
In addition to the `rulerz.operator` tag, two other values are needed:
Expand Down
4 changes: 2 additions & 2 deletions Resources/config/targets/doctrine.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
rulerz.compilation_target.doctrine:
rulerz.target.doctrine:
class: RulerZ\Target\DoctrineORM\DoctrineORM
public: false
tags:
- { name: rulerz.compilation_target }
- { name: rulerz.target }
4 changes: 2 additions & 2 deletions Resources/config/targets/doctrine_dbal.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
rulerz.compilation_target.doctrine_dbal:
rulerz.target.doctrine_dbal:
class: RulerZ\Target\DoctrineDBAL\DoctrineDBAL
public: false
tags:
- { name: rulerz.compilation_target }
- { name: rulerz.target }
4 changes: 2 additions & 2 deletions Resources/config/targets/elastica.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
rulerz.compilation_target.elastica:
rulerz.target.elastica:
class: RulerZ\Target\Elasticsa\Elastica
public: false
tags:
- { name: rulerz.compilation_target }
- { name: rulerz.target }
4 changes: 2 additions & 2 deletions Resources/config/targets/elasticsearch.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
rulerz.compilation_target.elasticsearch:
rulerz.target.elasticsearch:
class: RulerZ\Target\Elasticsearch\Elasticsearch
public: false
tags:
- { name: rulerz.compilation_target }
- { name: rulerz.target }
4 changes: 2 additions & 2 deletions Resources/config/targets/eloquent.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
rulerz.compilation_target.eloquent:
rulerz.target.eloquent:
class: RulerZ\Target\Eloquent\Eloquent
public: false
tags:
- { name: rulerz.compilation_target }
- { name: rulerz.target }
4 changes: 2 additions & 2 deletions Resources/config/targets/native.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
rulerz.compilation_target.native:
rulerz.target.native:
class: RulerZ\Target\Native\Native
public: false
tags:
- { name: rulerz.compilation_target }
- { name: rulerz.target }
4 changes: 2 additions & 2 deletions Resources/config/targets/pomm.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
rulerz.compilation_target.pomm:
rulerz.target.pomm:
class: RulerZ\Target\Pomm\Pomm
public: false
tags:
- { name: rulerz.compilation_target }
- { name: rulerz.target }

0 comments on commit ec1652c

Please sign in to comment.