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

111 Commits

Author SHA1 Message Date
Matt Stauffer
12172f4a5a Require passing a version number to isolate command 2022-12-20 16:09:38 -05: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
e67086d7e1 Bump version 2022-12-08 13:01:47 -05:00
Matt Stauffer
fb870548e8 Bump version 2022-12-06 16:29:28 -05:00
Dries Vints
2a8eefe767 version 2022-12-06 17:31:28 +01:00
Matt Stauffer
6237763a46 Merge branch 'master' into mes/test-drivers 2022-12-02 21:16:30 -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
StyleCI Bot
40d54b301c Apply fixes from StyleCI 2022-12-02 18:02:23 +00:00
Matt Stauffer
04b14cf9d1 Call writer() in lifecycle hook
Thanks to @dragoonis, we were able to simplify the calls to writer() down to a single lifecycle hook.

Co-Authored-By: Jacob Baker-Kretzmar <bakerkretzmar@users.noreply.github.com>
Co-Authored-By: Andy Newhouse <hi@andymnewhouse.me>
Co-Authored-By: Tony Messias <tonyzrp@gmail.com>
2022-12-02 13:02:14 -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