mirror of
https://github.com/danog/laravel-madeline-proto.git
synced 2024-12-02 09:27:53 +01:00
Added MadelineProtoFactory facade (Factory)
This commit is contained in:
parent
1ddaf00c30
commit
2ef3077852
25
src/Facades/Factory.php
Normal file
25
src/Facades/Factory.php
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Hu\MadelineProto\Facades;
|
||||||
|
|
||||||
|
use Illuminate\Support\Facades\Facade;
|
||||||
|
use \Hu\MadelineProto\MadelineProto;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Facade for MadelineProtoFactory class.
|
||||||
|
*
|
||||||
|
* @package Hu\MadelineProto\Facades
|
||||||
|
*
|
||||||
|
* @method static MadelineProto get(mixed $session, array $config = null)
|
||||||
|
* @method static MadelineProto make(string $sessionFile, array $config)
|
||||||
|
*/
|
||||||
|
class Factory extends Facade
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @inheritDoc
|
||||||
|
*/
|
||||||
|
protected static function getFacadeAccessor()
|
||||||
|
{
|
||||||
|
return 'madeline-proto-factory';
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user