You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for your suggestion, but there is a problem in implementing this. Since FTP methods won't result in success always, which will cause errors in the program when we implement an interface like this.
For example, in the case you have shown a number of methods will execute sequentially independent of whether the previous method execution is success or failure, which is not good.
Please let me know your thoughts.
One approach might be using the methods to build up a command stack and add a method for executing the stack. The FTP functions you're currently using return false or -1 if they fail and if they do so, you might utilize the MessageBag Class of Laravel instead of returning false.
Then you'll be able to provide more detailed error messages and the developers can check themselfs if the MessageBag is empty or not.
Can you provide a fluent interface like this?
It's not a necessity but I think this would improve the ease of use.
Greetings from Germany
Christian
The text was updated successfully, but these errors were encountered: