Skip to content

Extract Server class and refactor loading of drivers#1319

Merged
mattstauffer merged 7 commits intoversion-4from
mes/extract-server-class
Dec 18, 2022
Merged

Extract Server class and refactor loading of drivers#1319
mattstauffer merged 7 commits intoversion-4from
mes/extract-server-class

Conversation

@mattstauffer
Copy link
Copy Markdown
Collaborator

This is a mega PR. Oops. :)

  • Move server helpers to their own file, and then move them again into a Server class
  • Add tons of type hints and return type hints
  • Move all drivers but Basic and Laravel into a Specific directory so they can be loaded via glob
  • Add a beforeLoading hook to simplify the frontControllerPath method of many drivers

mattstauffer and others added 7 commits December 18, 2022 15:08
- Extract much of server.php into a `Server` class
- Move all but the Laravel and Basic drivers into a subfolder
- Load all but the Laravel and Basic drivers via glob
- Add `beforeLoading` hook to simplify the `frontControllerPath` method for some drivers
@mattstauffer mattstauffer merged commit ba67edb into version-4 Dec 18, 2022
@mattstauffer mattstauffer deleted the mes/extract-server-class branch December 18, 2022 21:22
@mattstauffer mattstauffer mentioned this pull request Dec 18, 2022
@driesvints
Copy link
Copy Markdown
Member

@mattstauffer if we're going to add type hints might as well remove all docblock params and return types.

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.

3 participants