src/Form/DataTransformer/ModelsToArrayTransformer.php
private function legacyConstructor(array $args)
    {
        $choiceList = $args[0];

        if (!$choiceList instanceof ModelChoiceList
            && !$choiceList instanceof ModelChoiceLoader
            && !$choiceList instanceof LazyChoiceList) {
            throw new RuntimeException('First param passed to ModelsToArrayTransformer should be instance of
                ModelChoiceLoader or ModelChoiceList or LazyChoiceList');
        }

        $this->choiceList = $choiceList;
        $this->modelManager = $args[1];
        $this->class = $args[2];
    }
private function legacyConstructor(array $args)
    {
        $choiceList = $args[0];

        if (!$choiceList instanceof ModelChoiceList
            && !$choiceList instanceof ModelChoiceLoader
            && !$choiceList instanceof LazyChoiceList) {
            throw new RuntimeException('First param passed to ModelsToArrayTransformer should be instance of
                ModelChoiceLoader or ModelChoiceList or LazyChoiceList');
        }

        $this->choiceList = $choiceList;
        $this->modelManager = $args[1];
        $this->class = $args[2];
    }
private function legacyConstructor ( array $ args ) { $ choiceList = $ args [ 0 ] ; if ( ! $ choiceList instanceof ModelChoiceList && ! $ choiceList instanceof ModelChoiceLoader && ! $ choiceList instanceof LazyChoiceList ) { throw new RuntimeException ( 'First param passed to ModelsToArrayTransformer should be instance of
                ModelChoiceLoader or ModelChoiceList or LazyChoiceList' ) ; } $ this -> choiceList = $ choiceList ; $ this -> modelManager = $ args [ 1 ] ; $ this -> class = $ args [ 2 ] ; }
Simulates the old constructor for BC.

@throws RuntimeException
Simulates the old constructor for BC .