1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-05 08:30:07 +01:00
Commit Graph

210 Commits

Author SHA1 Message Date
Matt Stauffer
0c57391eed Add status command (#1329)
* Build the foundation of a status command

* Apply fixes from StyleCI

* Wip testing status command

* Apply fixes from StyleCI

* Fix status test

* Apply fixes from StyleCI

* Fix race condition in creating test config file

* Apply fixes from StyleCI

* Reset container for each test

* Differentiate response code based on success or failure of status command

* Apply fixes from StyleCI

* Add the ability to test if a Brew service is running

* Apply fixes from StyleCI

* Check for more services running in status command

* Apply fixes from StyleCI

* Test Status

* Apply fixes from StyleCI

* Drop Yoast from base application test case

Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-01-05 16:40:27 -05:00
Matt Stauffer
e5e0e03799 Add a bunch more CLI command tests (#1332)
* Wip some cli tests

* Apply fixes from StyleCI

* Test parked command

* Test forget command

* Update Filesystem::rmDirAndContents to respect symlinks

* Wip cli commands

* Apply fixes from StyleCI

* Test link command, unlink command, and secure command

* Apply fixes from StyleCI

* Add tests for unsecure, unsecure --all, secured commands

Add placeholders for the remaining CLI commands
Add nginx::restart to unsecure --all command

Co-authored-by: StyleCI Bot <bot@styleci.io>
2022-12-30 15:07:34 -05:00
Matt Stauffer
f13be53b9f Clean up DX for fetch-share-url 2022-12-25 23:59:25 -05:00
Matt Stauffer
f2a62f51c6 Merge v3 2022-12-22 11:47:01 -05:00
Matt Stauffer
016aaf4920 Merge pull request #1325 from laravel/mes/ngrok-auth-token-command
Add set-ngrok-token command
2022-12-22 11:43:14 -05:00
Matt Stauffer
b200022041 Add set-ngrok-token command 2022-12-22 10:30:50 -05:00
Matt Stauffer
e19afe51ad Clean up NullWriter; drop legacy config check 2022-12-22 00:27:09 -05:00
Matt Stauffer
0f91d88bc4 Clean up NullWriter references 2022-12-22 00:07:24 -05:00
Matt Stauffer
a77030ab08 Merge branch 'version-4' of github.com:laravel/valet into version-4 2022-12-21 19:57:01 -05:00
Matt Stauffer
d44d23daed Add doc blocks 2022-12-21 19:56:57 -05:00
StyleCI Bot
486fb9b339 Apply fixes from StyleCI 2022-12-22 00:54:25 +00:00
Matt Stauffer
20f48f6eab Replace some \n with PHP_EOL; move custom drivers into Custom namespace 2022-12-21 19:54:13 -05:00
StyleCI Bot
e9e865e8f2 Apply fixes from StyleCI 2022-12-21 22:45:50 +00:00
Matt Stauffer
65b629db7f Write tests for Server.php 2022-12-21 17:45:34 -05:00
Matt Stauffer
fadefb1777 Add type hints and return types to Site and Valet 2022-12-20 15:12:40 -05:00
Matt Stauffer
ac4b8f6f40 Add type hints and return types to PhpFpm 2022-12-20 12:13:34 -05:00
Matt Stauffer
21835cc2b5 Add type hints and return hints to Filesystem 2022-12-19 19:13:38 -05:00
Matt Stauffer
1220cd6839 Add type hints and return type hints to CommandLine 2022-12-18 15:42:18 -06:00
Matt Stauffer
9b503a2ed3 Add type hints and return type hints to Brew 2022-12-18 15:40:12 -06:00
Matt Stauffer
400be90585 Resolve merge 2022-12-18 15:15:24 -06:00
Matt Stauffer
efa7937038 Update drivers location and loading
- 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
2022-12-18 15:08:17 -06:00
Matt Stauffer
a2712e6d8f Merge pull request #1311 from laravel/mes/version-4
Re-work how BasicValetDriver serves files in projects with and without `public/` directory
2022-12-15 17:29:30 -05:00
Matt Stauffer
f49b1b0e8a Set HTTP_HOST in BaseDriverTest 2022-12-11 13:04:36 -05:00
Matt Stauffer
1684068382 Refactor where legacy drivers are pulled in 2022-12-08 12:45:26 -05:00
Matt Stauffer
cd05ded9b5 Add legacy drivers for the remainder of v3 2022-12-07 16:10:48 -05:00
StyleCI Bot
0c27c62cec Apply fixes from StyleCI 2022-12-03 23:11:03 +00:00
Matt Stauffer
59967c3068 Extract basic driver with public/ from basic driver, and simplify both 2022-12-03 18:10:54 -05:00
StyleCI Bot
9f03a755f5 Apply fixes from StyleCI 2022-12-03 03:10:15 +00:00
Matt Stauffer
884c39d70b Test, and fix, ValetDriver 2022-12-02 22:10:04 -05:00
StyleCI Bot
e952fa59cb Apply fixes from StyleCI 2022-12-03 02:15:35 +00:00
Matt Stauffer
711e3dd2ba Move all drivers to PSR autoload, and write tests 2022-12-02 21:15:15 -05:00
Dries Vints
a0e1e02a47 Test Valet commands (#1256)
* First attempt at testing CLI commands

* Apply fixes from StyleCI

* Protect from running locally

* Fix test

* wip

* wip

* wip

* wip

* wip

* Update app.php

* Create config folder and files for CLI tests

* Apply fixes from StyleCI

* Fix some formatting

* Fix imports

* Update all output() calls to use the writer passed in by the command

Ugly capture of all $outputs from commands, by passing them into `writer()` to be bound into the container, where they can then be pulled out from calls to `output()` and its buddies `info()`, `table()`, and `warning()`.

* Apply fixes from StyleCI

* Flesh out park command test

* Apply fixes from StyleCI

* Drop php 7.0 and 7.1

Co-authored-by: StyleCI Bot <bot@styleci.io>
Co-authored-by: Matt Stauffer <matt@tighten.co>
2022-12-02 09:32:28 +01:00
Matt Stauffer
b7d6bd4611 Merge branch 'master' of github.com:laravel/valet 2022-12-01 20:32:13 -05:00
Matt Stauffer
ef151b076e Fix tests to prepend 'disable auto cleanup' env var 2022-12-01 20:31:49 -05:00
Matt Stauffer
8246ee6319 Merge pull request #1238 from jjpmann/feature/custom-site-stubs
use getStub to allow custom stub files
2022-12-01 20:25:41 -05:00
Erik | Sobit
2d429c353d solution for only remove the tld if it is at the end of the site name
o check if tld is at the end of the site name and if so remove it
o added corresponding test
2022-11-02 11:53:04 +01:00
Dries Vints
d0d42acff7 PHP 8.2 support (#1279)
* PHP 8.2 support

* wip

* Apply fixes from StyleCI

* wip

* wip

* wip

* Update tests.yml

Co-authored-by: StyleCI Bot <bot@styleci.io>
2022-09-08 13:37:17 +02:00
Jerry Price
e668e77f3d Merge branch 'master' into feature/custom-site-stubs 2022-07-08 09:21:51 -04:00
Matt Stauffer
e69d448245 Update Ngrok (valet share) to lowercase domains before matching 2022-05-18 11:47:30 -04:00
NasirNobin
0267da704e remove preg_replace deprecation warning 2022-04-16 18:47:38 +06:00
Jerry Price
021a4d1a5c use getStub to allow custom stub files 2022-04-13 10:50:41 -04:00
Michael Lehmkuhl
30af32d856 Clean up coding style 2022-04-03 18:44:56 -05:00
Michael Lehmkuhl
315af8904a Add PHP version to valet links output table 2022-04-03 18:35:51 -05:00
Matt Stauffer
0045896d8e Merge pull request #1216 from NasirNobin/feature/valet-run
PHP version isolation helper for command line
2022-03-31 09:55:22 -04:00
NasirNobin
2acd133f9f StyleCI Patch 2022-03-30 03:49:06 +06:00
Nasir Uddin Nobin
d198d7739c wip - refactor with valetphprc version (#10) 2022-03-30 03:48:03 +06:00
be57ffaf36 CI fixes 2022-03-29 20:07:19 +02:00
a52355ec49 Restore original directory permissions
As discussed in #1220, cleaning up after stopping Homebrew services that
run as root is probably the best solution for now.

What's changed:

- Stopping any Homebrew service now restores the appropriate permissions
  for the Homebrew directories
- Stopping nginx now also happens via $this->brew
  (to avoid code duplication)

The tests were updated to reflect this change.
2022-03-29 19:59:33 +02:00
Nasir Uddin Nobin
40cb21ec91 Apply suggestions from code review
Co-authored-by: Matt Stauffer <mattstauffer@users.noreply.github.com>
2022-03-29 08:56:01 +06:00
NasirNobin
23aebbe1d9 StyleCI Patch 2022-03-24 05:17:13 +06:00