Skip to content

Delete unnecessary includes#1621

Merged
josephsnyder merged 6 commits into
Kitware:masterfrom
williamjallen:refactor-includes
Aug 8, 2023
Merged

Delete unnecessary includes#1621
josephsnyder merged 6 commits into
Kitware:masterfrom
williamjallen:refactor-includes

Conversation

@williamjallen
Copy link
Copy Markdown
Collaborator

A small handful of common files are included in many places where the include statement is not necessary. By moving the includes to core code paths, we can remove all of the repetitive includes.

@josephsnyder josephsnyder added this pull request to the merge queue Aug 8, 2023
Merged via the queue into Kitware:master with commit 15b2acf Aug 8, 2023
@williamjallen williamjallen deleted the refactor-includes branch August 8, 2023 21:26
github-merge-queue Bot pushed a commit that referenced this pull request Aug 9, 2023
#1621 reduced the number of repetitive `require_once` commands, but made
the faulty assumption that the global functions being included were not
necessary in any of the middleware. A more appropriate spot for these
includes is Laravel's `AppServiceProvider`, which runs before the
middleware does, and is generally the place to change global settings.

Fixes #1630.
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.

2 participants