Skip to content

Commit e066604

Browse files
Apply Shift Upgrade Checker suggestions
1 parent dcb0f03 commit e066604

File tree

9 files changed

+25
-323
lines changed

9 files changed

+25
-323
lines changed

app/Providers/AuthServiceProvider.php

-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ class AuthServiceProvider extends ServiceProvider
2424
*/
2525
public function boot()
2626
{
27-
$this->registerPolicies();
28-
2927
//
3028
}
3129
}

artisan

+6-44
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,15 @@
11
#!/usr/bin/env php
22
<?php
33

4-
define('LARAVEL_START', microtime(true));
4+
use Symfony\Component\Console\Input\ArgvInput;
55

6-
/*
7-
|--------------------------------------------------------------------------
8-
| Register The Auto Loader
9-
|--------------------------------------------------------------------------
10-
|
11-
| Composer provides a convenient, automatically generated class loader
12-
| for our application. We just need to utilize it! We'll require it
13-
| into the script here so that we do not have to worry about the
14-
| loading of any our classes "manually". Feels great to relax.
15-
|
16-
*/
6+
define('LARAVEL_START', microtime(true));
177

8+
// Register the Composer autoloader...
189
require __DIR__.'/vendor/autoload.php';
1910

20-
$app = require_once __DIR__.'/bootstrap/app.php';
21-
22-
/*
23-
|--------------------------------------------------------------------------
24-
| Run The Artisan Application
25-
|--------------------------------------------------------------------------
26-
|
27-
| When we run the console application, the current CLI command will be
28-
| executed in this console and the response sent back to a terminal
29-
| or another output device for the developers. Here goes nothing!
30-
|
31-
*/
32-
33-
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
34-
35-
$status = $kernel->handle(
36-
$input = new Symfony\Component\Console\Input\ArgvInput,
37-
new Symfony\Component\Console\Output\ConsoleOutput
38-
);
39-
40-
/*
41-
|--------------------------------------------------------------------------
42-
| Shutdown The Application
43-
|--------------------------------------------------------------------------
44-
|
45-
| Once Artisan has finished running, we will fire off the shutdown events
46-
| so that any final work may be done by the application before we shut
47-
| down the process. This is the last thing to happen to the request.
48-
|
49-
*/
50-
51-
$kernel->terminate($input, $status);
11+
// Bootstrap Laravel and handle the command...
12+
$status = (require_once __DIR__.'/bootstrap/app.php')
13+
->handleCommand(new ArgvInput());
5214

5315
exit($status);

composer.json

+5-11
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
"laravel/tinker": "^2.9",
1212
"livewire/livewire": "^3.4",
1313
"laravel/ui": "^4.5",
14-
"mettle/sendportal-core": "dev-upgrade-dependencies"
14+
"mettle/sendportal-core": "^3.0"
1515
},
1616
"require-dev": {
17-
"fakerphp/faker": "^1.9.1",
18-
"mockery/mockery": "^1.4.4",
17+
"fakerphp/faker": "^1.23",
18+
"mockery/mockery": "^1.6",
1919
"nunomaduro/collision": "^8.1",
20-
"phpunit/phpunit": "^10.1",
20+
"phpunit/phpunit": "^10.5",
2121
"roave/security-advisories": "dev-master",
2222
"spatie/laravel-ignition": "^2.5.1"
2323
},
@@ -59,11 +59,5 @@
5959
"post-create-project-cmd": [
6060
"@php artisan key:generate --ansi"
6161
]
62-
},
63-
"repositories": [
64-
{
65-
"type": "vcs",
66-
"url": "https://github.com/zuzana-kunckova/sendportal-core"
67-
}
68-
]
62+
}
6963
}

public/index.php

+10-51
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,17 @@
11
<?php
22

3-
/**
4-
* Laravel - A PHP Framework For Web Artisans
5-
*
6-
* @author Taylor Otwell <[email protected]>
7-
*/
3+
use Illuminate\Http\Request;
4+
85
define('LARAVEL_START', microtime(true));
96

10-
/*
11-
|--------------------------------------------------------------------------
12-
| Register The Auto Loader
13-
|--------------------------------------------------------------------------
14-
|
15-
| Composer provides a convenient, automatically generated class loader for
16-
| our application. We just need to utilize it! We'll simply require it
17-
| into the script here so that we don't have to worry about manual
18-
| loading any of our classes later on. It feels great to relax.
19-
|
20-
*/
7+
// Determine if the application is in maintenance mode...
8+
if (file_exists($maintenance = __DIR__.'/../storage/framework/maintenance.php')) {
9+
require $maintenance;
10+
}
2111

12+
// Register the Composer autoloader...
2213
require __DIR__.'/../vendor/autoload.php';
2314

24-
/*
25-
|--------------------------------------------------------------------------
26-
| Turn On The Lights
27-
|--------------------------------------------------------------------------
28-
|
29-
| We need to illuminate PHP development, so let us turn on the lights.
30-
| This bootstraps the framework and gets it ready for use, then it
31-
| will load up this application so that we can run it and send
32-
| the responses back to the browser and delight our users.
33-
|
34-
*/
35-
36-
$app = require_once __DIR__.'/../bootstrap/app.php';
37-
38-
/*
39-
|--------------------------------------------------------------------------
40-
| Run The Application
41-
|--------------------------------------------------------------------------
42-
|
43-
| Once we have the application, we can handle the incoming request
44-
| through the kernel, and send the associated response back to
45-
| the client's browser allowing them to enjoy the creative
46-
| and wonderful application we have prepared for them.
47-
|
48-
*/
49-
50-
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
51-
52-
$response = $kernel->handle(
53-
$request = Illuminate\Http\Request::capture()
54-
);
55-
56-
$response->send();
57-
58-
$kernel->terminate($request, $response);
15+
// Bootstrap Laravel and handle the request...
16+
(require_once __DIR__.'/../bootstrap/app.php')
17+
->handleRequest(Request::capture());

resources/lang/en/auth.php

-19
This file was deleted.

resources/lang/en/pagination.php

-19
This file was deleted.

resources/lang/en/passwords.php

-22
This file was deleted.

resources/lang/en/validation.php

-151
This file was deleted.

0 commit comments

Comments
 (0)