Skip to content

Add meaningful message when using ProcessHelper and Process is not installed #37000

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

l-vo
Copy link
Contributor

@l-vo l-vo commented May 28, 2020

Q A
Branch? master
Bug fix? no
New feature? yes
Deprecations? no
Tickets
License MIT
Doc PR

When using the process helper without the Process component, a php fatal error is triggered (PHP Fatal error: Uncaught Error: Class 'Symfony\Component\Process\Process' not found). This PR adds a meaningful exception; allowing to display a console error message instead of a raw php fatal error.

@l-vo l-vo force-pushed the add_meaningful_message_when_process_component_missing branch from 8a03e8d to bfc88ac Compare May 28, 2020 20:54
@fabpot fabpot changed the base branch from master to 3.4 May 29, 2020 03:22
@fabpot fabpot force-pushed the add_meaningful_message_when_process_component_missing branch from bfc88ac to 3ab76e4 Compare May 29, 2020 03:22
@fabpot
Copy link
Member

fabpot commented May 29, 2020

Thank you @l-vo.

@fabpot fabpot merged commit b7cd22c into symfony:3.4 May 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants