Facade
This commit is contained in:
parent
17d4fd2306
commit
133aaff3e7
|
@ -28,7 +28,10 @@
|
|||
"laravel": {
|
||||
"providers": [
|
||||
"Bluesquare\\Connect\\ConnectServiceProvider"
|
||||
]
|
||||
],
|
||||
"aliases": {
|
||||
"Connect": "Bluesquare\\Connect\\Facades\\Connect"
|
||||
}
|
||||
}
|
||||
},
|
||||
"require": {
|
||||
|
|
|
@ -5,6 +5,7 @@ namespace Bluesquare\Connect;
|
|||
use Bluesquare\Connect\Traits\HasConnectSync;
|
||||
use GuzzleHttp\Client;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Routing\Router;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use Illuminate\Support\Str;
|
||||
use Psr\Http\Message\StreamInterface;
|
||||
|
@ -359,4 +360,9 @@ class Connect
|
|||
{
|
||||
return config('bconnect.url') ?? 'https://connect.bluesquare.io';
|
||||
}
|
||||
|
||||
public function routes(Router $router)
|
||||
{
|
||||
dump($router);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
namespace Bluesquare\Connect\Facades;
|
||||
|
||||
use Illuminate\Support\Facades\Facade;
|
||||
|
||||
class Connect extends Facade
|
||||
{
|
||||
/**
|
||||
* Register the typical Connect routes for an application.
|
||||
* @return void
|
||||
*/
|
||||
public static function routes()
|
||||
{
|
||||
static::$app->make(\Bluesquare\Connect\Connect::class)->routes(
|
||||
static::$app->make('router')
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue