Laravel 9 Update (#1413)

Update to Laravel 9 and PHP 8+

Co-authored-by: B.Fatih KOZ <fatih.koz@gmail.com>
This commit is contained in:
Nabeel S
2022-03-14 11:45:18 -04:00
committed by GitHub
parent 00bf18c225
commit 12848091a2
340 changed files with 6130 additions and 4502 deletions

View File

@@ -12,8 +12,8 @@ use Illuminate\Support\Facades\Log;
class ImporterController extends Controller
{
private $dbSvc;
private $importerSvc;
private DatabaseService $dbSvc;
private ImporterService $importerSvc;
public function __construct(DatabaseService $dbSvc, ImporterService $importerSvc)
{

View File

@@ -29,14 +29,14 @@ use RuntimeException;
class InstallerController extends Controller
{
private $airlineSvc;
private $analyticsSvc;
private $dbSvc;
private $envSvc;
private $migrationSvc;
private $reqSvc;
private $seederSvc;
private $userService;
private AirlineService $airlineSvc;
private AnalyticsService $analyticsSvc;
private DatabaseService $dbSvc;
private ConfigService $envSvc;
private MigrationService $migrationSvc;
private RequirementsService $reqSvc;
private SeederService $seederSvc;
private UserService $userService;
/**
* InstallerController constructor.
@@ -326,6 +326,7 @@ class InstallerController extends Controller
'api_key' => Utils::generateApiKey(),
'airline_id' => $airline->id,
'password' => Hash::make($request->get('password')),
'opt_in' => true,
];
$user = $this->userService->createUser($attrs, ['admin']);

View File

@@ -12,9 +12,9 @@ use Illuminate\Support\Facades\Log;
class UpdateController extends Controller
{
private $installerSvc;
private $migrationSvc;
private $seederSvc;
private InstallerService $installerSvc;
private MigrationService $migrationSvc;
private SeederService $seederSvc;
/**
* @param InstallerService $installerSvc