src/CodeGenerator/CodeGeneratorRegistry.php
public static function getCodeGenerator($entityClass, $entityField = 'code')
    {
        if (!isset(self::$generators[$entityClass][$entityField])) {
            throw new \Exception("There is no registered entity code generator for class $entityClass and field $entityField");
        }

        return self::$generators[$entityClass][$entityField];
    }
public static function getCodeGenerator($entityClass, $entityField = 'code')
    {
        if (!isset(self::$generators[$entityClass][$entityField])) {
            throw new \Exception("There is no registered entity code generator for class $entityClass and field $entityField");
        }

        return self::$generators[$entityClass][$entityField];
    }
public static function getCodeGenerator ( $ entityClass , $ entityField = 'code' ) { if ( ! isset ( self :: $ generators [ $ entityClass ] [ $ entityField ] ) ) { throw new \ Exception ( "There is no registered entity code generator for class $entityClass and field $entityField" ) ; } return self :: $ generators [ $ entityClass ] [ $ entityField ] ; }
Returns the last registered entity code generator service id for a given entity class and field.

@param string $entityClass
@param string $entityField

@return CodeGeneratorInterface

@throws \Exception
Returns the last registered entity code generator service id for a given entity class and field .