Skip to content

Conversation

@icamys
Copy link
Contributor

@icamys icamys commented Feb 14, 2017

Minor fix in postLoad event (file uploading). Added accessor methods in FileUploader class to make it possible to get $targetDir from outside.

…s in FileUploader class to make it possible to get $targetDir from outside.
Copy link

@roman-1983 roman-1983 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good.

return $this->targetDir;
}

public function setTargetDir($targetDir = '')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

default empty string ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair observation. Perhaps it would be better to move default empty string to property declaration?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would just remove the setter. IMO there's no need to have it. We only need the getter to be able to read the configured directory later.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xabbuh Done.

Copy link
Member

@javiereguiluz javiereguiluz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@xabbuh
Copy link
Member

xabbuh commented Feb 28, 2017

Thank you @icamys.

@xabbuh xabbuh closed this Feb 28, 2017
xabbuh added a commit that referenced this pull request Feb 28, 2017
… Dmitrii) This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #7494). Discussion ---------- Minor fix in `postLoad` event (file uploading) Minor fix in `postLoad` event (file uploading). Added accessor methods in FileUploader class to make it possible to get $targetDir from outside. Commits ------- f16d3ed Minor fix in event (file uploading)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

6 participants