public static function getDefinitionFormContainer(CompilerExtension $compilerExtension, $indexConfig = 'formContainer', $prefixName = 'formContainer'): ServiceDefinition
    {
        $builder = $compilerExtension->getContainerBuilder();
        $config = $compilerExtension->getConfig();

        return $builder->addDefinition($compilerExtension->prefix($prefixName))
            ->setFactory($config[$indexConfig])
            ->setAutowired($config['autowired']);
    }
public static function getDefinitionFormContainer(CompilerExtension $compilerExtension, $indexConfig = 'formContainer', $prefixName = 'formContainer'): ServiceDefinition
    {
        $builder = $compilerExtension->getContainerBuilder();
        $config = $compilerExtension->getConfig();

        return $builder->addDefinition($compilerExtension->prefix($prefixName))
            ->setFactory($config[$indexConfig])
            ->setAutowired($config['autowired']);
    }
public static function getDefinitionFormContainer ( CompilerExtension $ compilerExtension , $ indexConfig = 'formContainer' , $ prefixName = 'formContainer' ) : ServiceDefinition { $ builder = $ compilerExtension -> getContainerBuilder ( ) ; $ config = $ compilerExtension -> getConfig ( ) ; return $ builder -> addDefinition ( $ compilerExtension -> prefix ( $ prefixName ) ) -> setFactory ( $ config [ $ indexConfig ] ) -> setAutowired ( $ config [ 'autowired' ] ) ; }
Get definition form container.

@param CompilerExtension $compilerExtension
@param string            $indexConfig
@param string            $prefixName
@return ServiceDefinition
Get definition form container .