Skip to content

Commit

Permalink
Rename Facade Accessors Due to the Resolve Failor
Browse files Browse the repository at this point in the history
  • Loading branch information
soheilrt committed Sep 28, 2019
1 parent 4334f22 commit 31f3d73
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 22 deletions.
27 changes: 11 additions & 16 deletions src/AdobeConnectServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@
use Psr\SimpleCache\InvalidArgumentException;
use Soheilrt\AdobeConnectClient\Client\Client;
use Soheilrt\AdobeConnectClient\Client\Connection\Curl\Connection;
use Soheilrt\AdobeConnectClient\Facades\CommonInfo;
use Soheilrt\AdobeConnectClient\Facades\Permission;
use Soheilrt\AdobeConnectClient\Facades\Principal;
use Soheilrt\AdobeConnectClient\Facades\SCO;
use Soheilrt\AdobeConnectClient\Facades\SCORecord;

class AdobeConnectServiceProvider extends ServiceProvider implements DeferrableProvider
{
Expand Down Expand Up @@ -41,19 +36,19 @@ private function bindFacades()
$this->app->bind(Client::class, function () {
return $this->processClient();
});
$this->app->bind(SCO::class, function () use ($entities) {
$this->app->bind('adobe-connect.sco', function () use ($entities) {
return $this->app->make($entities['sco']);
});
$this->app->bind(SCORecord::class, function () use ($entities) {
$this->app->bind('adobe-connect.sco-record', function () use ($entities) {
return $this->app->make($entities['sco-record']);
});
$this->app->bind(Principal::class, function () use ($entities) {
$this->app->bind('adobe-connect.principal', function () use ($entities) {
return $this->app->make($entities['principal']);
});
$this->app->bind(Permission::class, function () use ($entities) {
return $this->app->make($entities['permission']);
$this->app->bind('adobe-connect.permission', function () use ($entities) {
return $this->app->make($entities['permission']);
});
$this->app->bind(CommonInfo::class, function () use ($entities) {
$this->app->bind('adobe-connect.common-info', function () use ($entities) {
return $this->app->make($entities['common-info']);
});

Expand Down Expand Up @@ -177,11 +172,11 @@ public function provides()
{
return [
Client::class,
SCORecord::class,
Principal::class,
Permission::class,
CommonInfo::class,
SCO::class,
'adobe-connect.sco-record',
'adobe-connet.principal',
'adobe-connect.permission',
'adobe-connect.common-info',
'adobe-connect.sco',
];
}
}
2 changes: 1 addition & 1 deletion src/Facades/CommonInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ class CommonInfo extends Facade
{
protected static function getFacadeAccessor()
{
return __CLASS__;
return 'adobe-connect.common-info';
}
}
2 changes: 1 addition & 1 deletion src/Facades/Permission.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ class Permission extends Facade
{
protected static function getFacadeAccessor()
{
return __CLASS__;
return 'adobe-connect.permission';
}
}
2 changes: 1 addition & 1 deletion src/Facades/Principal.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ class Principal extends Facade
{
protected static function getFacadeAccessor()
{
return __CLASS__;
return 'adobe-connect.principal';
}
}
3 changes: 1 addition & 2 deletions src/Facades/SCO.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
namespace Soheilrt\AdobeConnectClient\Facades;


use DateTimeImmutable;
use Illuminate\Support\Facades\Facade;

/**
Expand Down Expand Up @@ -34,6 +33,6 @@ class SCO extends Facade
{
protected static function getFacadeAccessor()
{
return __CLASS__;
return 'adobe-connect.sco';
}
}
2 changes: 1 addition & 1 deletion src/Facades/SCORecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ class SCORecord extends Facade
{
protected static function getFacadeAccessor()
{
return __CLASS__;
return 'adobe-connect.sco-record';
}
}

0 comments on commit 31f3d73

Please sign in to comment.