File tree Expand file tree Collapse file tree 10 files changed +33
-17
lines changed
tests/Integration/Support Expand file tree Collapse file tree 10 files changed +33
-17
lines changed Original file line number Diff line number Diff line change 1
1
# Release Notes for 7.x
2
2
3
- ## [ Unreleased] ( https://github.com/laravel/framework/compare/v7.13.0...7.x )
3
+ ## [ Unreleased] ( https://github.com/laravel/framework/compare/v7.14.0...7.x )
4
+
5
+ ### Added
6
+ - Added missing ` symfony/mime ` suggest ([ #33067 ] ( https://github.com/laravel/framework/pull/33067 ) )
7
+
8
+
9
+ ## [ v7.14.0 (2020-06-02)] ( https://github.com/laravel/framework/compare/v7.13.0...v7.14.0 )
4
10
5
11
### Added
6
12
- Views: make attributes available within render method ([ #32978 ] ( https://github.com/laravel/framework/pull/32978 ) )
9
15
- Added ` Illuminate\Http\Client\Request::toPsrRequest() ` ([ #33016 ] ( https://github.com/laravel/framework/pull/33016 ) )
10
16
- Added ` Illuminate\Support\MessageBag::addIf() ` method ([ 50efe09] ( https://github.com/laravel/framework/commit/50efe099b59e75563298deb992017b4cabfb021d ) )
11
17
- Provide ` psr/container-implementation ` ([ #33020 ] ( https://github.com/laravel/framework/pull/33020 ) )
18
+ - Support PHP 8's reflection API ([ #33039 ] ( https://github.com/laravel/framework/pull/33039 ) , [ 6018c1d] ( https://github.com/laravel/framework/commit/6018c1d18e7b764c17307c1f98d64482a00a668d ) )
12
19
13
20
### Fixed
14
21
- Restore ` app()->getCached*Path() ` absolute '/' behavior in Windows ([ #32969 ] ( https://github.com/laravel/framework/pull/32969 ) )
20
27
21
28
### Changed
22
29
- Use new line for ` route:list ` middleware ([ #32993 ] ( https://github.com/laravel/framework/pull/32993 ) )
30
+ - Disallow generation commands with reserved names ([ #33037 ] ( https://github.com/laravel/framework/pull/33037 ) )
23
31
24
32
25
33
## [ v7.13.0 (2020-05-26)] ( https://github.com/laravel/framework/compare/v7.12.0...v7.13.0 )
Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ protected function serializeJob($job)
164
164
if ($ job instanceof Closure) {
165
165
if (! class_exists (CallQueuedClosure::class)) {
166
166
throw new RuntimeException (
167
- 'To enable support for closure jobs, please install illuminate/queue. '
167
+ 'To enable support for closure jobs, please install the illuminate/queue package . '
168
168
);
169
169
}
170
170
Original file line number Diff line number Diff line change 30
30
}
31
31
},
32
32
"suggest" : {
33
- "illuminate/queue" : " Required to use closures when chaining jobs (^7.0)"
33
+ "illuminate/queue" : " Required to use closures when chaining jobs (^7.0). "
34
34
},
35
35
"config" : {
36
36
"sort-packages" : true
Original file line number Diff line number Diff line change 33
33
"suggest" : {
34
34
"dragonmantank/cron-expression" : " Required to use scheduler (^2.0)." ,
35
35
"guzzlehttp/guzzle" : " Required to use the ping methods on schedules (^6.3.1|^7.0)." ,
36
- "illuminate/bus" : " Required to use the scheduled job dispatcher (^7.0)" ,
37
- "illuminate/container" : " Required to use the scheduler (^7.0)" ,
38
- "illuminate/filesystem" : " Required to use the generator command (^7.0)" ,
39
- "illuminate/queue" : " Required to use closures for scheduled jobs (^7.0)"
36
+ "illuminate/bus" : " Required to use the scheduled job dispatcher (^7.0). " ,
37
+ "illuminate/container" : " Required to use the scheduler (^7.0). " ,
38
+ "illuminate/filesystem" : " Required to use the generator command (^7.0). " ,
39
+ "illuminate/queue" : " Required to use closures for scheduled jobs (^7.0). "
40
40
},
41
41
"config" : {
42
42
"sort-packages" : true
Original file line number Diff line number Diff line change 6
6
use FilesystemIterator ;
7
7
use Illuminate \Contracts \Filesystem \FileNotFoundException ;
8
8
use Illuminate \Support \Traits \Macroable ;
9
+ use RuntimeException ;
9
10
use Symfony \Component \Finder \Finder ;
10
11
use Symfony \Component \Mime \MimeTypes ;
11
12
@@ -321,6 +322,12 @@ public function extension($path)
321
322
*/
322
323
public function guessExtension ($ path )
323
324
{
325
+ if (! class_exists (MimeTypes::class)) {
326
+ throw new RuntimeException (
327
+ 'To enable support for guessing extensions, please install the symfony/mime package. '
328
+ );
329
+ }
330
+
324
331
return (new MimeTypes )->getExtensions ($ this ->mimeType ($ path ))[0 ] ?? null ;
325
332
}
326
333
Original file line number Diff line number Diff line change 30
30
}
31
31
},
32
32
"suggest" : {
33
- "illuminate/http" : " Required for handling uploaded files (^7.0)" ,
33
+ "illuminate/http" : " Required for handling uploaded files (^7.0). " ,
34
34
"league/flysystem" : " Required to use the Flysystem local and FTP drivers (^1.0.34)." ,
35
35
"league/flysystem-aws-s3-v3" : " Required to use the Flysystem S3 driver (^1.0)." ,
36
36
"league/flysystem-cached-adapter" : " Required to use the Flysystem cache (^1.0)." ,
37
37
"league/flysystem-sftp" : " Required to use the Flysystem SFTP driver (^1.0)." ,
38
- "psr/http-message" : " Required to allow Storage::put to accept a StreamInterface (^1.0)."
38
+ "psr/http-message" : " Required to allow Storage::put to accept a StreamInterface (^1.0)." ,
39
+ "symfony/mime" : " Required to enable support for guessing extensions (^5.0)."
39
40
},
40
41
"config" : {
41
42
"sort-packages" : true
Original file line number Diff line number Diff line change 2
2
3
3
namespace Illuminate \Foundation \Console ;
4
4
5
- use Exception ;
6
5
use Illuminate \Console \Command ;
6
+ use RuntimeException ;
7
7
use Symfony \Component \Filesystem \Filesystem as SymfonyFilesystem ;
8
8
9
9
class StorageLinkCommand extends Command
@@ -67,7 +67,7 @@ protected function links()
67
67
protected function getRelativeTarget ($ link , $ target )
68
68
{
69
69
if (! class_exists (SymfonyFilesystem::class)) {
70
- throw new Exception ( ' Please install the symfony/filesystem Composer package to create relative links . ' );
70
+ throw new RuntimeException ( ' To enable support for relative links, please install the symfony/filesystem package. ' );
71
71
}
72
72
73
73
return (new SymfonyFilesystem )->makePathRelative ($ target , dirname ($ link ));
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ protected function registerPsrRequest()
137
137
->createRequest ($ app ->make ('request ' ));
138
138
}
139
139
140
- throw new BindingResolutionException ('Unable to resolve PSR request. Please install symfony/psr-http-message-bridge and nyholm/psr7. ' );
140
+ throw new BindingResolutionException ('Unable to resolve PSR request. Please install the symfony/psr-http-message-bridge and nyholm/psr7 packages . ' );
141
141
});
142
142
}
143
143
Original file line number Diff line number Diff line change 3
3
namespace Illuminate \Support \Facades ;
4
4
5
5
use Laravel \Ui \UiServiceProvider ;
6
- use LogicException ;
6
+ use RuntimeException ;
7
7
8
8
/**
9
9
* @method static \Illuminate\Auth\AuthManager extend(string $driver, \Closure $callback)
@@ -53,7 +53,7 @@ protected static function getFacadeAccessor()
53
53
public static function routes (array $ options = [])
54
54
{
55
55
if (! array_key_exists (UiServiceProvider::class, static ::$ app ->getLoadedProviders ())) {
56
- throw new LogicException ( ' Please install the laravel/ui package in order to use the Auth::routes() method. ' );
56
+ throw new RuntimeException ( ' In order to use the Auth::routes() method, please install the laravel/ui package . ' );
57
57
}
58
58
59
59
static ::$ app ->make ('router ' )->auth ($ options );
Original file line number Diff line number Diff line change 3
3
namespace Illuminate \Tests \Integration \Support ;
4
4
5
5
use Illuminate \Support \Facades \Auth ;
6
- use LogicException ;
7
6
use Orchestra \Testbench \TestCase ;
7
+ use RuntimeException ;
8
8
9
9
class AuthFacadeTest extends TestCase
10
10
{
11
11
public function testItFailsIfTheUiPackageIsMissing ()
12
12
{
13
- $ this ->expectExceptionObject (new LogicException (
14
- 'Please install the laravel/ui package in order to use the Auth::routes() method. '
13
+ $ this ->expectExceptionObject (new RuntimeException (
14
+ 'In order to use the Auth::routes() method, please install the laravel/ui package . '
15
15
));
16
16
17
17
Auth::routes ();
You can’t perform that action at this time.
0 commit comments