Skip to content

Release v4.0.0 #20

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

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open

Release v4.0.0 #20

wants to merge 13 commits into from

Conversation

yCodeTech
Copy link
Owner

No description provided.

@yCodeTech yCodeTech changed the title Release v4.0.0 Release v3.3.0 Apr 25, 2025
@yCodeTech yCodeTech changed the title Release v3.3.0 Release v4.0.0 Apr 25, 2025
…directory

- Move all drivers into a new `Drivers` directory within the `Valet` directory so they can be autoloaded by PSR-4.

- Separate the specific drivers into a new `Specific` subdirectory of `Drivers`, and leave the basic and laravel drivers in the `Drivers` directory.

- Namespace all driver classes as `Valet\Drivers` or `Valet\Drivers\Specific`.

- Add `use` declarations for classes that need to be used within another class.
… namespaced drivers.

These legacy drivers are deprecated by default as of v3.2.0.
- Move `require.php` into `includes` directory and rename it to `require-drivers.php` and change the require reference in `server.php`.

- Add the directory loop to require all legacy drivers.
…ring concatenation to interpolation

- Remove extra spaces in the all driver's docblock params, and separate the params from the return and description.

- Convert string concatenation to string interpolation. eg. $sitePath . '/web/app/' -> "$sitePath/web/app/" or "{$sitePath}/web/app/"
…r into it's own class, and simplify both

- Extract functionality for basic driver with a public directory into it's own class `BasicWithPublicValetDriver`, and simplify both classes.

- Removed now redundant methods.
…th` method for some drivers

- Add `beforeLoading` method.

- Move most `$_SERVER` variables for many drivers into the new method.

- Remove the now unused `$sitename` param from the `serverScript` method in `Typo3ValetDriver`.
- Add new public `composerRequires` method to the base `ValetDriver` class.

- Remove the private `composerRequiresSculpin` method from `SculpinValetDriver`, and update it's reference to use the new global `composerRequires` method.
…rs using the new namespaces.

- Remove listing the specific drivers individually, which would be a maintenance nightmare for new drivers.

- Add new `specificDrivers` method to bulk map the specific drivers into the array using the namespace.
This leverages the existing `.valet-env.php` file capability, but just adds the Valet Home directory as a first-lookup location.

So, now Valet will check for `.valet-env.php` in:
- `~/.config/valet/`
- then the current project folder
…ivers\Custom`

- Add namespace to the sample custom driver, and a `use` declaration to make sure the `ValetDriver` is available in this custom class.

- Add new `customDrivers` method to bulk map the custom drivers from the `~.config/valet/Drivers` directory into the drivers array using the new namespace of `Valet\Drivers\Custom`.
convert string concatenation to interpolation
When PHP files other than `index.php` exist in `/public/` this allows them to be served by the Laravel driver.
@yCodeTech yCodeTech changed the base branch from release/3.2.0 to master April 28, 2025 15:49
@yCodeTech yCodeTech changed the base branch from master to release/3.2.0 April 28, 2025 15:50
Base automatically changed from release/3.2.0 to master May 15, 2025 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant