public function rotateAction ()
    {
        $this->validateRequest();

        $imageManager = $this->container->get('thrace_media.imagemanager');
        $name = $this->getRequest()->get('name');
        $imageManager->rotate($name);
        $hash = $imageManager->checksumTemporaryFileByName($name);

        return new JsonResponse(array(
            'success' => true,
            'name'    => $name,
            'hash'    => $hash
        ));
        
    }
public function rotateAction ()
    {
        $this->validateRequest();

        $imageManager = $this->container->get('thrace_media.imagemanager');
        $name = $this->getRequest()->get('name');
        $imageManager->rotate($name);
        $hash = $imageManager->checksumTemporaryFileByName($name);

        return new JsonResponse(array(
            'success' => true,
            'name'    => $name,
            'hash'    => $hash
        ));
        
    }
public function rotateAction ( ) { $ this -> validateRequest ( ) ; $ imageManager = $ this -> container -> get ( 'thrace_media.imagemanager' ) ; $ name = $ this -> getRequest ( ) -> get ( 'name' ) ; $ imageManager -> rotate ( $ name ) ; $ hash = $ imageManager -> checksumTemporaryFileByName ( $ name ) ; return new JsonResponse ( array ( 'success' => true , 'name' => $ name , 'hash' => $ hash ) ) ; }
This action performs image rotation

@return JsonResponse
This action performs image rotation