public function toType($alias, TypeFactory $factory)
    {
        $typeRule = $this->findTypeRule($alias);
        $config = $typeRule['type'].'|'.$typeRule['rule'];

        return $factory->toType($config);
    }
public function toType($alias, TypeFactory $factory)
    {
        $typeRule = $this->findTypeRule($alias);
        $config = $typeRule['type'].'|'.$typeRule['rule'];

        return $factory->toType($config);
    }
public function toType ( $ alias , TypeFactory $ factory ) { $ typeRule = $ this -> findTypeRule ( $ alias ) ; $ config = $ typeRule [ 'type' ] . '|' . $ typeRule [ 'rule' ] ; return $ factory -> toType ( $ config ) ; }
Create a type of this aliases.

@param string      $alias
@param TypeFactory $factory

@return AbstractType
Create a type of this aliases .