Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Guard scripts from being run in non-CLI contexts #47777

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
merged 1 commit into from
Oct 4, 2022

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 4.4
Bug fix? no
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

Although exposing those scripts on the web would be a mistake, let's disallow running them but from the CLI.

@carsonbot carsonbot added this to the 4.4 milestone Oct 3, 2022
@fabpot
Copy link
Member

fabpot commented Oct 4, 2022

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 35910bf into symfony:4.4 Oct 4, 2022
fabpot added a commit that referenced this pull request Oct 4, 2022
…s-grekas)

This PR was merged into the 5.4 branch.

Discussion
----------

Guard scripts from being run in non-CLI contexts

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Same as #47777 but for 5.4. I checked 6.x and we didn't add more scripts there.

Commits
-------

9335c81 Guard scripts from being run in non-CLI contexts
@nicolas-grekas nicolas-grekas deleted the bin-cli44 branch October 17, 2022 11:29
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.

6 participants