protected function triggerTransformation($name, array $params, EventInterface $event) {
        $transformation = $this->getTransformation($name);

        if (!$transformation) {
            throw new TransformationException('Transformation "' . $name . '" not registered', 400);
        }

        $transformation
            ->setImage($event->getResponse()->getModel())
            ->setEvent($event)
            ->transform($params);
    }
protected function triggerTransformation($name, array $params, EventInterface $event) {
        $transformation = $this->getTransformation($name);

        if (!$transformation) {
            throw new TransformationException('Transformation "' . $name . '" not registered', 400);
        }

        $transformation
            ->setImage($event->getResponse()->getModel())
            ->setEvent($event)
            ->transform($params);
    }
protected function triggerTransformation ( $ name , array $ params , EventInterface $ event ) { $ transformation = $ this -> getTransformation ( $ name ) ; if ( ! $ transformation ) { throw new TransformationException ( 'Transformation "' . $ name . '" not registered' , 400 ) ; } $ transformation -> setImage ( $ event -> getResponse ( ) -> getModel ( ) ) -> setEvent ( $ event ) -> transform ( $ params ) ; }
Trigger transformation with the given name, with the given parameters

@param string $name Name of transformation
@param array $params Transformation parameters
@param EventInterface $event Event that triggered the transformation chain
@throws TransformationException If the transformation fails or is not registered
Trigger transformation with the given name with the given parameters