@@ 16-27 (lines=12) @@ | ||
13 | /** |
|
14 | * {@inheritdoc} |
|
15 | */ |
|
16 | public function build(ReflectionClass $reflectionClass, Annotation $annotation) |
|
17 | { |
|
18 | /** @var Definition $definition */ |
|
19 | list($serviceId, $definition) = parent::build($reflectionClass, $annotation); |
|
20 | ||
21 | $definition->addTag(ConsoleCompilerPass::TAG); |
|
22 | $definition->setPublic(true); |
|
23 | $definition->setShared(false); |
|
24 | $serviceId = sprintf('__console.%s', $serviceId); |
|
25 | ||
26 | return [$serviceId, $definition]; |
|
27 | } |
|
28 | } |
|
29 |
@@ 19-31 (lines=13) @@ | ||
16 | /** |
|
17 | * {@inheritdoc} |
|
18 | */ |
|
19 | public function build(ReflectionClass $reflectionClass, Annotation $annotation) |
|
20 | { |
|
21 | /** @var Definition $definition */ |
|
22 | list($serviceId, $definition) = parent::build($reflectionClass, $annotation); |
|
23 | ||
24 | $serviceId = sprintf('__Listener.%s', $serviceId); |
|
25 | ||
26 | $definition->addTag(EventListenerCompilerPass::TAG); |
|
27 | $definition->setShared(false); |
|
28 | $definition->setPublic(true); |
|
29 | ||
30 | return [$serviceId, $definition]; |
|
31 | } |
|
32 | ||
33 | /** |
|
34 | * {@inheritdoc} |