src/phpDocumentor/Transformer/Command/Project/TransformCommand.php
public function loadTransformations(Transformer $transformer)
    {
        /** @var ConfigurationHelper $configurationHelper */
        $configurationHelper = $this->getHelper('phpdocumentor_configuration');

        $received = array();
        $transformations = $configurationHelper->getConfigValueFromPath('transformations/transformations');
        if (is_array($transformations)) {
            if (isset($transformations['writer'])) {
                $received[] = $this->createTransformation($transformations);
            } else {
                foreach ($transformations as $transformation) {
                    if (is_array($transformation)) {
                        $received[] = $this->createTransformation($transformations);
                    }
                }
            }
        }

        $this->appendReceivedTransformations($transformer, $received);
    }
public function loadTransformations(Transformer $transformer)
    {
        /** @var ConfigurationHelper $configurationHelper */
        $configurationHelper = $this->getHelper('phpdocumentor_configuration');

        $received = array();
        $transformations = $configurationHelper->getConfigValueFromPath('transformations/transformations');
        if (is_array($transformations)) {
            if (isset($transformations['writer'])) {
                $received[] = $this->createTransformation($transformations);
            } else {
                foreach ($transformations as $transformation) {
                    if (is_array($transformation)) {
                        $received[] = $this->createTransformation($transformations);
                    }
                }
            }
        }

        $this->appendReceivedTransformations($transformer, $received);
    }
public function loadTransformations ( Transformer $ transformer ) { /** @var ConfigurationHelper $configurationHelper */ $ configurationHelper = $ this -> getHelper ( 'phpdocumentor_configuration' ) ; $ received = array ( ) ; $ transformations = $ configurationHelper -> getConfigValueFromPath ( 'transformations/transformations' ) ; if ( is_array ( $ transformations ) ) { if ( isset ( $ transformations [ 'writer' ] ) ) { $ received [ ] = $ this -> createTransformation ( $ transformations ) ; } else { foreach ( $ transformations as $ transformation ) { if ( is_array ( $ transformation ) ) { $ received [ ] = $ this -> createTransformation ( $ transformations ) ; } } } } $ this -> appendReceivedTransformations ( $ transformer , $ received ) ; }
Load custom defined transformations.

@param Transformer $transformer

@todo this is an ugly implementation done for speed of development, should be refactored

@return void
Load custom defined transformations .