Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
29 | public function createService(ServiceLocatorInterface $serviceLocator) |
||
30 | { |
||
31 | $appServiceLocator = $serviceLocator instanceof AbstractPluginManager ? $serviceLocator->getServiceLocator() : $serviceLocator; |
||
32 | |||
33 | /** @var FormElementManager $formElementManager */ |
||
34 | $formElementManager = $appServiceLocator->get('FormElementManager'); |
||
35 | Assert::isInstanceOf($formElementManager, FormElementManager::class); |
||
36 | |||
37 | return new ContextBuilder($formElementManager); |
||
38 | } |
||
39 | |||
41 |