Appearance
SetupChecker
php
final class Zairakai\LaravelDevTools\Services\SetupCheckerTells what the setup would publish that the project does not have, or has differently.
The files are generated in a temporary folder with the code of the setup itself (ConfigStubPublisher), then compared with the ones of the project. Nothing is written in the project. A file that differs can be a change of the project or a file late on the package: the check cannot tell, it shows the difference.
Source: src/Services/SetupChecker.php
Constants
| Name | Value | Description |
|---|---|---|
DIFFERENT | 'different' | |
MISSING | 'missing' | |
SAME | 'same' |
Methods
check()
php
public function check(string $vendorPath, string $basePath): arrayReturns list<array{file: string, state: string, detail: string}>
inspect()
php
public function inspect(string $vendorPath, string $basePath, callable $then): mixedGenerates the files of the setup in a temporary folder, compares them with the project's, calls $then with the folder and the results, then removes the folder. The project is not written here.
Returns T