Skip to content

Commit 0f8f90e

Browse files
Add example/idea of valueresolver controller annotations
1 parent 57baeeb commit 0f8f90e

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

DependencyInjection/Compiler/ServiceTagArgumentPass.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
namespace SimonMarx\Symfony\Bundles\ServiceAnnotations\DependencyInjection\Compiler;
55

66

7-
use App\Serializer\CircularReference\DefaultCircularReferenceHandler;
87
use SimonMarx\Symfony\Bundles\ServiceAnnotations\Annotation\ServiceTag;
98
use SimonMarx\Symfony\Bundles\ServiceAnnotations\Annotation\ServiceTagArgument;
109
use SimonMarx\Symfony\Bundles\ServiceAnnotations\Exception\InvalidServiceAnnotationException;

README.MD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ class SomeChild extends MyParent {}
202202
```
203203

204204

205-
#### Example 5: DependencyInjection via Annotation
205+
#### Example 6: DependencyInjection via Annotation
206206

207207
In case you want to inject something from your container into the constructor (e.g. tagged_iterator) which is not handled by autowiring
208208
you can use the `@DependencyInjection` annotation.

SimaServiceAnnotationsBundle.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ public function build(ContainerBuilder $container)
2121
$container
2222
->addCompilerPass(new ServiceTagPass())
2323
->addCompilerPass(new ServiceAliasPass())
24+
->addCompilerPass(new DependencyInjectionPass())
2425
->addCompilerPass(new ServiceTagArgumentPass())
25-
->addCompilerPass(new NoServicePass())
26-
->addCompilerPass(new DependencyInjectionPass());
26+
->addCompilerPass(new NoServicePass());
2727
}
2828
}

Utils/ReflectionCacheTrait.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
namespace SimonMarx\Symfony\Bundles\ServiceAnnotations\Utils;
55

6-
7-
use App\Command\PermissionPersistCommand;
86
use ReflectionClass;
97
use ReflectionException;
108
use ReflectionMethod;

0 commit comments

Comments
 (0)