@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Facade\Ignition\Context; |
| 4 | 4 | |
| 5 | -use Illuminate\Http\Request; |
|
| 6 | 5 | use Facade\FlareClient\Context\RequestContext; |
| 6 | +use Illuminate\Http\Request; |
|
| 7 | 7 | |
| 8 | 8 | class LaravelRequestContext extends RequestContext |
| 9 | 9 | { |
@@ -5,10 +5,10 @@ |
||
| 5 | 5 | use Illuminate\Foundation\Application; |
| 6 | 6 | use Illuminate\Support\Arr; |
| 7 | 7 | use Symfony\Component\VarDumper\Cloner\Data; |
| 8 | -use Symfony\Component\VarDumper\VarDumper; |
|
| 9 | 8 | use Symfony\Component\VarDumper\Cloner\VarCloner; |
| 10 | 9 | use Symfony\Component\VarDumper\Dumper\CliDumper; |
| 11 | 10 | use Symfony\Component\VarDumper\Dumper\HtmlDumper as BaseHtmlDumper; |
| 11 | +use Symfony\Component\VarDumper\VarDumper; |
|
| 12 | 12 | |
| 13 | 13 | class DumpRecorder |
| 14 | 14 | { |
@@ -2,9 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Facade\Ignition\ErrorPage; |
| 4 | 4 | |
| 5 | -use Illuminate\Foundation\Application; |
|
| 6 | -use Facade\Ignition\IgnitionConfig; |
|
| 7 | 5 | use Facade\IgnitionContracts\SolutionProviderRepository; |
| 6 | +use Facade\Ignition\IgnitionConfig; |
|
| 7 | +use Illuminate\Foundation\Application; |
|
| 8 | 8 | use Throwable; |
| 9 | 9 | |
| 10 | 10 | class ErrorPageHandler |
@@ -4,15 +4,12 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Closure; |
| 6 | 6 | use Exception; |
| 7 | +use Facade\FlareClient\Report; |
|
| 8 | +use Facade\Ignition\Http\Controllers\ShareReportController; |
|
| 7 | 9 | use Facade\Ignition\Ignition; |
| 8 | -use Illuminate\Contracts\Support\Arrayable; |
|
| 9 | -use Illuminate\Support\Collection; |
|
| 10 | -use Illuminate\Support\Str; |
|
| 11 | -use InvalidArgumentException; |
|
| 12 | 10 | use Facade\Ignition\IgnitionConfig; |
| 13 | -use Facade\Ignition\Http\Controllers\ShareReportController; |
|
| 14 | 11 | use Facade\Ignition\Solutions\SolutionTransformer; |
| 15 | -use Facade\FlareClient\Report; |
|
| 12 | +use Illuminate\Contracts\Support\Arrayable; |
|
| 16 | 13 | use Laravel\Telescope\Http\Controllers\HomeController; |
| 17 | 14 | use Laravel\Telescope\Telescope; |
| 18 | 15 | use Throwable; |
@@ -3,16 +3,8 @@ discard block |
||
| 3 | 3 | namespace Facade\Ignition; |
| 4 | 4 | |
| 5 | 5 | use Facade\FlareClient\Flare; |
| 6 | -use Illuminate\Foundation\Application; |
|
| 7 | -use Illuminate\Log\Events\MessageLogged; |
|
| 8 | -use Illuminate\Log\LogManager; |
|
| 9 | -use Illuminate\Queue\QueueManager; |
|
| 10 | -use Illuminate\Support\Arr; |
|
| 11 | -use Illuminate\Support\Facades\Log; |
|
| 12 | -use Illuminate\Support\Facades\Route; |
|
| 13 | -use Illuminate\Support\ServiceProvider; |
|
| 14 | -use Illuminate\View\Engines\CompilerEngine as LaravelCompilerEngine; |
|
| 15 | -use Illuminate\View\Engines\PhpEngine as LaravelPhpEngine; |
|
| 6 | +use Facade\FlareClient\Http\Client; |
|
| 7 | +use Facade\IgnitionContracts\SolutionProviderRepository as SolutionProviderRepositoryContract; |
|
| 16 | 8 | use Facade\Ignition\Commands\TestCommand; |
| 17 | 9 | use Facade\Ignition\Context\LaravelContextDetector; |
| 18 | 10 | use Facade\Ignition\DumpRecorder\DumpRecorder; |
@@ -20,8 +12,8 @@ discard block |
||
| 20 | 12 | use Facade\Ignition\ErrorPage\Renderer; |
| 21 | 13 | use Facade\Ignition\Http\Controllers\ExecuteSolutionController; |
| 22 | 14 | use Facade\Ignition\Http\Controllers\HealthCheckController; |
| 23 | -use Facade\Ignition\Http\Controllers\ShareReportController; |
|
| 24 | 15 | use Facade\Ignition\Http\Controllers\ScriptController; |
| 16 | +use Facade\Ignition\Http\Controllers\ShareReportController; |
|
| 25 | 17 | use Facade\Ignition\Http\Controllers\StyleController; |
| 26 | 18 | use Facade\Ignition\LogRecorder\LogRecorder; |
| 27 | 19 | use Facade\Ignition\Logger\FlareHandler; |
@@ -35,8 +27,8 @@ discard block |
||
| 35 | 27 | use Facade\Ignition\QueryRecorder\QueryRecorder; |
| 36 | 28 | use Facade\Ignition\SolutionProviders\BadMethodCallSolutionProvider; |
| 37 | 29 | use Facade\Ignition\SolutionProviders\DefaultDbNameSolutionProvider; |
| 38 | -use Facade\Ignition\SolutionProviders\InvalidRouteActionSolutionProvider; |
|
| 39 | 30 | use Facade\Ignition\SolutionProviders\IncorrectValetDbCredentialsSolutionProvider; |
| 31 | +use Facade\Ignition\SolutionProviders\InvalidRouteActionSolutionProvider; |
|
| 40 | 32 | use Facade\Ignition\SolutionProviders\MissingAppKeySolutionProvider; |
| 41 | 33 | use Facade\Ignition\SolutionProviders\MissingImportSolutionProvider; |
| 42 | 34 | use Facade\Ignition\SolutionProviders\MissingPackageSolutionProvider; |
@@ -45,8 +37,16 @@ discard block |
||
| 45 | 37 | use Facade\Ignition\SolutionProviders\ViewNotFoundSolutionProvider; |
| 46 | 38 | use Facade\Ignition\Views\Engines\CompilerEngine; |
| 47 | 39 | use Facade\Ignition\Views\Engines\PhpEngine; |
| 48 | -use Facade\FlareClient\Http\Client; |
|
| 49 | -use Facade\IgnitionContracts\SolutionProviderRepository as SolutionProviderRepositoryContract; |
|
| 40 | +use Illuminate\Foundation\Application; |
|
| 41 | +use Illuminate\Log\Events\MessageLogged; |
|
| 42 | +use Illuminate\Log\LogManager; |
|
| 43 | +use Illuminate\Queue\QueueManager; |
|
| 44 | +use Illuminate\Support\Arr; |
|
| 45 | +use Illuminate\Support\Facades\Log; |
|
| 46 | +use Illuminate\Support\Facades\Route; |
|
| 47 | +use Illuminate\Support\ServiceProvider; |
|
| 48 | +use Illuminate\View\Engines\CompilerEngine as LaravelCompilerEngine; |
|
| 49 | +use Illuminate\View\Engines\PhpEngine as LaravelPhpEngine; |
|
| 50 | 50 | use Monolog\Logger; |
| 51 | 51 | use Whoops\Handler\HandlerInterface; |
| 52 | 52 | |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Facade\Ignition\Middleware; |
| 4 | 4 | |
| 5 | -use Facade\Ignition\DumpRecorder\DumpRecorder; |
|
| 6 | 5 | use Facade\FlareClient\Report; |
| 6 | +use Facade\Ignition\DumpRecorder\DumpRecorder; |
|
| 7 | 7 | |
| 8 | 8 | class AddDumps |
| 9 | 9 | { |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Facade\Ignition\Middleware; |
| 4 | 4 | |
| 5 | -use Facade\Ignition\LogRecorder\LogRecorder; |
|
| 6 | 5 | use Facade\FlareClient\Report; |
| 6 | +use Facade\Ignition\LogRecorder\LogRecorder; |
|
| 7 | 7 | |
| 8 | 8 | class AddLogs |
| 9 | 9 | { |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Facade\Ignition\Middleware; |
| 4 | 4 | |
| 5 | -use Facade\Ignition\QueryRecorder\QueryRecorder; |
|
| 6 | 5 | use Facade\FlareClient\Report; |
| 6 | +use Facade\Ignition\QueryRecorder\QueryRecorder; |
|
| 7 | 7 | |
| 8 | 8 | class AddQueries |
| 9 | 9 | { |
@@ -70,6 +70,9 @@ |
||
| 70 | 70 | })->first(); |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | + /** |
|
| 74 | + * @param string $class |
|
| 75 | + */ |
|
| 73 | 76 | protected function getAvailableMethods($class): Collection |
| 74 | 77 | { |
| 75 | 78 | $class = new ReflectionClass($class); |
@@ -3,9 +3,9 @@ |
||
| 3 | 3 | namespace Facade\Ignition\SolutionProviders; |
| 4 | 4 | |
| 5 | 5 | use BadMethodCallException; |
| 6 | -use Illuminate\Support\Collection; |
|
| 7 | 6 | use Facade\IgnitionContracts\BaseSolution; |
| 8 | 7 | use Facade\IgnitionContracts\HasSolutionsForThrowable; |
| 8 | +use Illuminate\Support\Collection; |
|
| 9 | 9 | use ReflectionClass; |
| 10 | 10 | use ReflectionMethod; |
| 11 | 11 | use Throwable; |