Skip to content

Commit c172539

Browse files
authored
[0.2] [Issue #7] Fix filesystems config file typo (#11)
1 parent 25eabcf commit c172539

File tree

5 files changed

+10
-11
lines changed

5 files changed

+10
-11
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ This can be useful when wanting to store emails sent for archive purposes.
1313

1414
You can install the package via composer:
1515

16-
For Laravel 5.x and 6.x
16+
For Laravel 7.x and 8.x
1717

1818
```bash
19-
composer require pod-point/laravel-mail-export:^0.1
19+
composer require pod-point/laravel-mail-export
2020
```
2121

22-
For Laravel 7.x and 8.x
22+
For Laravel 5.x and 6.x
2323

2424
```bash
25-
composer require pod-point/laravel-mail-export:^0.2
25+
composer require pod-point/laravel-mail-export:^0.1
2626
```
2727

2828
### Publishing the config file

src/Listeners/ExportMessage.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class ExportMessage
2222
/**
2323
* Create a new listener instance.
2424
*
25-
* @param Factory $filesystem
25+
* @param Factory $filesystem
2626
*/
2727
public function __construct(Factory $filesystem)
2828
{
@@ -32,7 +32,7 @@ public function __construct(Factory $filesystem)
3232
/**
3333
* Handles the Event when it happens while listening.
3434
*
35-
* @param MessageSent $event
35+
* @param MessageSent $event
3636
*/
3737
public function handle(MessageSent $event)
3838
{

src/StorageOptions.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ class StorageOptions
4040
* Declares the storage options for a specific \Swift_Message. The only
4141
* properties allowed are 'disk', 'path' and 'filename', all optional.
4242
*
43-
* @param Swift_Message $message
44-
* @param array $properties
43+
* @param Swift_Message $message
44+
* @param array $properties
4545
*/
4646
public function __construct(Swift_Message $message, array $properties = [])
4747
{
@@ -62,7 +62,7 @@ public function __construct(Swift_Message $message, array $properties = [])
6262
*/
6363
private function defaultDisk(): string
6464
{
65-
return config('mail-export.disk') ?: config('filesystem.default');
65+
return config('mail-export.disk') ?: config('filesystems.default');
6666
}
6767

6868
/**

tests/Feature/MailExportTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function it_will_export_mails_as_eml_files()
7373
/** @test */
7474
public function it_can_export_using_the_default_application_disk_if_none_is_given()
7575
{
76-
config()->set('filesystem.default', 'default_disk');
76+
config()->set('filesystems.default', 'default_disk');
7777
config()->set('mail-export.disk', null);
7878

7979
Storage::fake('local');

tests/TestCase.php

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ abstract class TestCase extends Orchestra
1111
* Get package providers.
1212
*
1313
* @param \Illuminate\Foundation\Application $app
14-
*
1514
* @return array
1615
*/
1716
protected function getPackageProviders($app)

0 commit comments

Comments
 (0)