| 1 | <?php |
||
| 19 | abstract class AbstractBehaviorExtension extends CompilerExtension |
||
| 20 | { |
||
| 21 | |||
| 22 | 2 | protected function getClassAnalyzer() : ServiceDefinition |
|
| 23 | { |
||
| 24 | 2 | $builder = $this->getContainerBuilder(); |
|
| 25 | |||
| 26 | 2 | if ($builder->hasDefinition('knp.classAnalyzer')) { |
|
| 27 | 2 | return $builder->getDefinition('knp.classAnalyzer'); |
|
| 28 | } |
||
| 29 | |||
| 30 | 2 | return $builder->addDefinition('knp.classAnalyzer') |
|
| 31 | 2 | ->setClass(ClassAnalyzer::class); |
|
| 32 | } |
||
| 33 | |||
| 34 | |||
| 35 | /** |
||
| 36 | * @return ServiceDefinition|NULL |
||
| 37 | */ |
||
| 38 | 3 | protected function buildDefinitionFromCallable(string $callable = NULL) |
|
| 58 | |||
| 59 | } |
||
| 60 |
This method has been deprecated.