mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-08 01:12:34 +00:00
Merge (#127)
This commit is contained in:
@ -2,11 +2,11 @@
|
||||
|
||||
namespace App\Facades;
|
||||
|
||||
use App\Contracts\Notification;
|
||||
use App\Notifications\NotificationInterface;
|
||||
use Illuminate\Support\Facades\Facade;
|
||||
|
||||
/**
|
||||
* @method static void send(object $notifiable, Notification $notification)
|
||||
* @method static void send(object $notifiable, NotificationInterface $notification)
|
||||
*/
|
||||
class Notifier extends Facade
|
||||
{
|
||||
|
@ -9,17 +9,19 @@
|
||||
/**
|
||||
* Class SSH
|
||||
*
|
||||
* @method static \App\Helpers\SSH init(Server $server, string $asUser = null)
|
||||
* @method static init(Server $server, string $asUser = null)
|
||||
* @method static setLog(string $logType, int $siteId = null)
|
||||
* @method static connect()
|
||||
* @method static exec($commands, string $log = '', int $siteId = null)
|
||||
* @method static string exec(string $command, string $log = '', int $siteId = null)
|
||||
* @method static string assertExecuted(array|string $commands)
|
||||
* @method static string assertExecutedContains(string $command)
|
||||
* @method static disconnect()
|
||||
*/
|
||||
class SSH extends FacadeAlias
|
||||
{
|
||||
public static function fake(): SSHFake
|
||||
public static function fake(?string $output = null): SSHFake
|
||||
{
|
||||
static::swap($fake = new SSHFake());
|
||||
static::swap($fake = new SSHFake($output));
|
||||
|
||||
return $fake;
|
||||
}
|
||||
|
19
app/Facades/Toast.php
Normal file
19
app/Facades/Toast.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace App\Facades;
|
||||
|
||||
use Illuminate\Support\Facades\Facade;
|
||||
|
||||
/**
|
||||
* @method static void success(string $message)
|
||||
* @method static void error(string $message)
|
||||
* @method static void warning(string $message)
|
||||
* @method static void info(string $message)
|
||||
*/
|
||||
class Toast extends Facade
|
||||
{
|
||||
protected static function getFacadeAccessor(): string
|
||||
{
|
||||
return 'toast';
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user