@@ 34-52 (lines=19) @@ | ||
31 | ]; |
|
32 | ||
33 | ||
34 | public function loadConfiguration() |
|
35 | { |
|
36 | $config = $this->getConfig($this->default); |
|
37 | $this->validateConfigTypes($config); |
|
38 | $builder = $this->getContainerBuilder(); |
|
39 | ||
40 | $userCallable = $this->buildDefinitionFromCallable($config['userCallable']); |
|
41 | ||
42 | $builder->addDefinition($this->prefix('listener')) |
|
43 | ->setClass(BlameableSubscriber::class, [ |
|
44 | '@' . $this->getClassAnalyzer()->getClass(), |
|
45 | $config['isRecursive'], |
|
46 | $config['trait'], |
|
47 | '@' . $userCallable->getClass(), |
|
48 | $config['userEntity'] |
|
49 | ]) |
|
50 | ->setAutowired(FALSE) |
|
51 | ->addTag(EventsExtension::TAG_SUBSCRIBER); |
|
52 | } |
|
53 | ||
54 | ||
55 | /** |
@@ 32-49 (lines=18) @@ | ||
29 | ]; |
|
30 | ||
31 | ||
32 | public function loadConfiguration() |
|
33 | { |
|
34 | $config = $this->getConfig($this->default); |
|
35 | $this->validateConfigTypes($config); |
|
36 | $builder = $this->getContainerBuilder(); |
|
37 | ||
38 | $geolocationCallable = $this->buildDefinitionFromCallable($config['geolocationCallable']); |
|
39 | ||
40 | $builder->addDefinition($this->prefix('listener')) |
|
41 | ->setClass(GeocodableSubscriber::class, [ |
|
42 | '@' . $this->getClassAnalyzer()->getClass(), |
|
43 | $config['isRecursive'], |
|
44 | $config['trait'], |
|
45 | $geolocationCallable ? '@' . $geolocationCallable->getClass() : $geolocationCallable |
|
46 | ]) |
|
47 | ->setAutowired(FALSE) |
|
48 | ->addTag(EventsExtension::TAG_SUBSCRIBER); |
|
49 | } |
|
50 | ||
51 | ||
52 | /** |