Skip to content

Commit 3950cc2

Browse files
committed
Redundant class removed #345 #344
Redundant class `ClientManager::class` removed and config handling moved to depending library "webklex/php-imap" #345 #344
1 parent 706d6c7 commit 3950cc2

File tree

4 files changed

+12
-139
lines changed

4 files changed

+12
-139
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
1414
### Breaking changes
1515
- NaN
1616

17+
## [2.1.0] - 2020-10-08
18+
### Fixed
19+
- Redundant class `ClientManager::class` removed and config handling moved to depending library "webklex/php-imap" #345 #344
20+
21+
### Breaking changes
22+
- `\Webklex\IMAP\ClientManager::class` no longer exists. Please use the `\Webklex\IMAP\Facades\Client::class` facade or `\Webklex\PHPIMAP\ClientManager::class` instead.
23+
1724
## [2.0.2] - 2020-09-23
1825
### Fixed
1926
- Missing default config parameter added (#337)

src/ClientManager.php

Lines changed: 0 additions & 134 deletions
This file was deleted.

src/Facades/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
namespace Webklex\IMAP\Facades;
1414

1515
use Illuminate\Support\Facades\Facade;
16-
use Webklex\IMAP\ClientManager;
16+
use Webklex\PHPIMAP\ClientManager;
1717

1818
/**
1919
* Class Client

src/Providers/LaravelServiceProvider.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
namespace Webklex\IMAP\Providers;
1414

1515
use Illuminate\Support\ServiceProvider;
16-
use Webklex\IMAP\ClientManager;
16+
use Webklex\PHPIMAP\ClientManager;
1717
use Webklex\PHPIMAP\Client;
1818

1919
/**
@@ -40,15 +40,15 @@ public function boot() {
4040
* @return void
4141
*/
4242
public function register() {
43+
$this->setVendorConfig();
44+
4345
$this->app->singleton(ClientManager::class, function($app) {
44-
return new ClientManager($app);
46+
return new ClientManager($app['config']["imap"]);
4547
});
4648

4749
$this->app->singleton(Client::class, function($app) {
4850
return $app[ClientManager::class]->account();
4951
});
50-
51-
$this->setVendorConfig();
5252
}
5353

5454
/**

0 commit comments

Comments
 (0)