Skip to content

Conversation

@LaurentPetard
Copy link
Contributor

@LaurentPetard LaurentPetard commented Dec 22, 2017

The goal is to avoid to execute fopen and handle errors directly in API services.

@LaurentPetard LaurentPetard force-pushed the API-487 branch 2 times, most recently from e91d5c3 to 1a1d09f Compare December 22, 2017 14:32
*
* @param string $filePath Path of the file
*
* @throws InvalidArgumentException if the file doesn't exists or is not readable
Copy link
Collaborator

Choose a reason for hiding this comment

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

create a dedicated exception seems a good idea as you have a dedicated interface (and exception are not BC break in php)

@LaurentPetard LaurentPetard merged commit eba1dc2 into master Jan 5, 2018
@LaurentPetard LaurentPetard deleted the API-487 branch January 5, 2018 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants