protected function move($resource, $movement)
    {
        $resource->setPosition($resource->getPosition() + $movement);

        // TODO use ResourceManager
        $event = $this->getOperator()->update($resource);
        $event->toFlashes($this->getFlashBag());
    }
protected function move($resource, $movement)
    {
        $resource->setPosition($resource->getPosition() + $movement);

        // TODO use ResourceManager
        $event = $this->getOperator()->update($resource);
        $event->toFlashes($this->getFlashBag());
    }
protected function move ( $ resource , $ movement ) { $ resource -> setPosition ( $ resource -> getPosition ( ) + $ movement ) ; // TODO use ResourceManager $ event = $ this -> getOperator ( ) -> update ( $ resource ) ; $ event -> toFlashes ( $ this -> getFlashBag ( ) ) ; }
Move the resource.

@param $resource
@param $movement
Move the resource .