Skip to content

Commit 3bb9c52

Browse files
authored
Merge pull request pterodactyl#1147 from pterodactyl/feature/upgrade-laravel-to-5.6
Upgrade Laravel to 5.6
2 parents a0cdd3f + 341f6e4 commit 3bb9c52

18 files changed

+809
-576
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ APP_TIMEZONE=America/New_York
66
APP_CLEAR_TASKLOG=720
77
APP_DELETE_MINUTES=10
88
APP_ENVIRONMENT_ONLY=true
9+
LOG_CHANNEL=daily
910

1011
DB_HOST=127.0.0.1
1112
DB_PORT=3306

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,16 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
66
## v0.7.7 (Derelict Dermodactylus)
77
### Fixed
88
* Fixes an issue with the sidebar logo not working correctly in some browsers due to the CSS being assigned.
9+
* Fixes a bunch of typos through the code base.
910

1011
### Added
1112
* Added a new client API endpoint for gathering the utilization stats for servers including disk, cpu, and memory. `GET /api/client/servers/<id>/utilization`
1213
* Added validation to variable validation rules to validate that the validation rules are valid because we heard you like validating your validation.
1314

15+
### Changed
16+
* Updated core framework from Laravel 5.5 to Laravel 5.6.
17+
* Improved support for Windows based environments.
18+
1419
## v0.7.6 (Derelict Dermodactylus)
1520
### Fixed
1621
* Fixes a UI error when attempting to change the default Nest and Egg for an existing server.

app/Http/Middleware/TrustProxies.php

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,9 @@ class TrustProxies extends Middleware
1515
protected $proxies;
1616

1717
/**
18-
* The current proxy header mappings.
18+
* The headers that should be used to detect proxies.
1919
*
20-
* @var array
20+
* @var int
2121
*/
22-
protected $headers = [
23-
Request::HEADER_FORWARDED => 'FORWARDED',
24-
Request::HEADER_X_FORWARDED_FOR => 'X_FORWARDED_FOR',
25-
Request::HEADER_X_FORWARDED_HOST => 'X_FORWARDED_HOST',
26-
Request::HEADER_X_FORWARDED_PORT => 'X_FORWARDED_PORT',
27-
Request::HEADER_X_FORWARDED_PROTO => 'X_FORWARDED_PROTO',
28-
];
22+
protected $headers = Request::HEADER_X_FORWARDED_ALL;
2923
}

app/Providers/SettingsServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Pterodactyl\Providers;
44

5-
use Illuminate\Contracts\Logging\Log;
5+
use Psr\Log\LoggerInterface as Log;
66
use Illuminate\Database\QueryException;
77
use Illuminate\Support\ServiceProvider;
88
use Illuminate\Contracts\Encryption\Encrypter;
@@ -62,7 +62,7 @@ class SettingsServiceProvider extends ServiceProvider
6262
*
6363
* @param \Illuminate\Contracts\Config\Repository $config
6464
* @param \Illuminate\Contracts\Encryption\Encrypter $encrypter
65-
* @param \Illuminate\Contracts\Logging\Log $log
65+
* @param \Psr\Log\LoggerInterface $log
6666
* @param \Pterodactyl\Contracts\Repository\SettingsRepositoryInterface $settings
6767
*/
6868
public function boot(ConfigRepository $config, Encrypter $encrypter, Log $log, SettingsRepositoryInterface $settings)

app/Services/DaemonKeys/DaemonKeyDeletionService.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424

2525
namespace Pterodactyl\Services\DaemonKeys;
2626

27-
use Illuminate\Log\Writer;
2827
use Webmozart\Assert\Assert;
2928
use Pterodactyl\Models\Server;
29+
use Psr\Log\LoggerInterface as Writer;
3030
use GuzzleHttp\Exception\RequestException;
3131
use Illuminate\Database\ConnectionInterface;
3232
use Pterodactyl\Exceptions\DisplayException;
@@ -57,7 +57,7 @@ class DaemonKeyDeletionService
5757
protected $serverRepository;
5858

5959
/**
60-
* @var \Illuminate\Log\Writer
60+
* @var \Psr\Log\LoggerInterface
6161
*/
6262
protected $writer;
6363

@@ -68,7 +68,7 @@ class DaemonKeyDeletionService
6868
* @param \Pterodactyl\Contracts\Repository\DaemonKeyRepositoryInterface $repository
6969
* @param \Pterodactyl\Contracts\Repository\Daemon\ServerRepositoryInterface $daemonRepository
7070
* @param \Pterodactyl\Contracts\Repository\ServerRepositoryInterface $serverRepository
71-
* @param \Illuminate\Log\Writer $writer
71+
* @param \Psr\Log\LoggerInterface $writer
7272
*/
7373
public function __construct(
7474
ConnectionInterface $connection,

app/Services/Servers/ServerDeletionService.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
namespace Pterodactyl\Services\Servers;
1111

12-
use Illuminate\Log\Writer;
12+
use Psr\Log\LoggerInterface as Writer;
1313
use GuzzleHttp\Exception\RequestException;
1414
use Illuminate\Database\ConnectionInterface;
1515
use Pterodactyl\Services\Databases\DatabaseManagementService;
@@ -51,7 +51,7 @@ class ServerDeletionService
5151
protected $repository;
5252

5353
/**
54-
* @var \Illuminate\Log\Writer
54+
* @var \Psr\Log\LoggerInterface
5555
*/
5656
protected $writer;
5757

@@ -63,7 +63,7 @@ class ServerDeletionService
6363
* @param \Pterodactyl\Contracts\Repository\DatabaseRepositoryInterface $databaseRepository
6464
* @param \Pterodactyl\Services\Databases\DatabaseManagementService $databaseManagementService
6565
* @param \Pterodactyl\Contracts\Repository\ServerRepositoryInterface $repository
66-
* @param \Illuminate\Log\Writer $writer
66+
* @param \Psr\Log\LoggerInterface $writer
6767
*/
6868
public function __construct(
6969
ConnectionInterface $connection,

app/Services/Servers/SuspensionService.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
namespace Pterodactyl\Services\Servers;
1111

12-
use Illuminate\Log\Writer;
1312
use Pterodactyl\Models\Server;
13+
use Psr\Log\LoggerInterface as Writer;
1414
use GuzzleHttp\Exception\RequestException;
1515
use Illuminate\Database\ConnectionInterface;
1616
use Pterodactyl\Exceptions\DisplayException;
@@ -38,7 +38,7 @@ class SuspensionService
3838
protected $repository;
3939

4040
/**
41-
* @var \Illuminate\Log\Writer
41+
* @var \Psr\Log\LoggerInterface
4242
*/
4343
protected $writer;
4444

@@ -48,7 +48,7 @@ class SuspensionService
4848
* @param \Illuminate\Database\ConnectionInterface $database
4949
* @param \Pterodactyl\Contracts\Repository\Daemon\ServerRepositoryInterface $daemonServerRepository
5050
* @param \Pterodactyl\Contracts\Repository\ServerRepositoryInterface $repository
51-
* @param \Illuminate\Log\Writer $writer
51+
* @param \Psr\Log\LoggerInterface $writer
5252
*/
5353
public function __construct(
5454
ConnectionInterface $database,

composer.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,38 +19,38 @@
1919
"aws/aws-sdk-php": "^3.48",
2020
"cakephp/chronos": "^1.1",
2121
"doctrine/dbal": "^2.5",
22-
"fideloper/proxy": "^3.3",
22+
"fideloper/proxy": "^4.0",
2323
"guzzlehttp/guzzle": "^6.3",
2424
"hashids/hashids": "^2.0",
2525
"igaster/laravel-theme": "^2.0.6",
2626
"laracasts/utilities": "^3.0",
27-
"laravel/framework": "5.5.*",
27+
"laravel/framework": "5.6.*",
2828
"laravel/tinker": "^1.0",
2929
"lord/laroute": "^2.4",
3030
"matriphe/iso-639": "^1.2",
31-
"mtdowling/cron-expression": "^1.2",
3231
"nesbot/carbon": "^1.22",
3332
"pragmarx/google2fa": "^2.0",
3433
"predis/predis": "^1.1",
3534
"prologue/alerts": "^0.4",
3635
"ramsey/uuid": "^3.7",
3736
"s1lentium/iptools": "^1.1",
38-
"sofa/eloquence-base": "v5.5",
39-
"sofa/eloquence-validable": "v5.5",
37+
"sofa/eloquence-base": "v5.6",
38+
"sofa/eloquence-validable": "v5.6",
4039
"spatie/laravel-fractal": "^5.3",
4140
"webmozart/assert": "^1.2",
4241
"znck/belongs-to-through": "^2.3"
4342
},
4443
"require-dev": {
4544
"barryvdh/laravel-debugbar": "^3.1",
4645
"barryvdh/laravel-ide-helper": "^2.4",
47-
"codedungeon/phpunit-result-printer": "^0.6.0",
46+
"codedungeon/phpunit-result-printer": "^0.17.1",
4847
"filp/whoops": "^2.1",
49-
"friendsofphp/php-cs-fixer": "^2.8.0",
48+
"friendsofphp/php-cs-fixer": "^2.11.1",
5049
"fzaninotto/faker": "^1.6",
5150
"mockery/mockery": "^1.0",
52-
"php-mock/php-mock-phpunit": "^2.0",
53-
"phpunit/phpunit": "~6.4.0"
51+
"nunomaduro/collision": "^2.0",
52+
"php-mock/php-mock-phpunit": "^2.1",
53+
"phpunit/phpunit": "~7.0"
5454
},
5555
"autoload": {
5656
"classmap": [

0 commit comments

Comments
 (0)