src/OcraDiCompiler/Generator/DiInstantiatorCompiler.php
protected function buildParams(array $params)
    {
        $normalizedParameters = array();

        foreach ($params as $parameter) {
            if ($parameter instanceof GeneratorInstance) {
                /* @var $parameter GeneratorInstance */
                $normalizedParameters[] = sprintf('$di->get(%s)', '\'' . $parameter->getName() . '\'');
            } else {
                $normalizedParameters[] = var_export($parameter, true);
            }
        }

        return $normalizedParameters;
    }
protected function buildParams(array $params)
    {
        $normalizedParameters = array();

        foreach ($params as $parameter) {
            if ($parameter instanceof GeneratorInstance) {
                /* @var $parameter GeneratorInstance */
                $normalizedParameters[] = sprintf('$di->get(%s)', '\'' . $parameter->getName() . '\'');
            } else {
                $normalizedParameters[] = var_export($parameter, true);
            }
        }

        return $normalizedParameters;
    }
protected function buildParams ( array $ params ) { $ normalizedParameters = array ( ) ; foreach ( $ params as $ parameter ) { if ( $ parameter instanceof GeneratorInstance ) { /* @var $parameter GeneratorInstance */ $ normalizedParameters [ ] = sprintf ( '$di->get(%s)' , '\'' . $ parameter -> getName ( ) . '\'' ) ; } else { $ normalizedParameters [ ] = var_export ( $ parameter , true ) ; } } return $ normalizedParameters ; }
Generates parameter strings to be used as injections, replacing reference parameters with their respective
getters

@param array $params
@return array
Generates parameter strings to be used as injections replacing reference parameters with their respective getters