Magestead\Service\Notification::send PHP Метод

send() публичный статический Метод

Send desktop notification
public static send ( $message )
$message
    public static function send($message)
    {
        $notifier = NotifierFactory::create();
        $basePath = dirname(__FILE__) . '/../../../';
        $notification = (new Notify())->setTitle('Magestead')->setBody($message)->setIcon($basePath . 'assets/magentologo.png');
        $notifier->send($notification);
    }

Usage Example

Пример #1
0
 /**
  * Magento2Project constructor.
  * @param array $options
  * @param array $config
  * @param $projectPath
  * @param OutputInterface $output
  */
 public function __construct(array $options, array $config, $projectPath, OutputInterface $output)
 {
     $this->output = $output;
     $this->composerInstall($projectPath, $output);
     $this->installMagento($config, $options, $projectPath, $output);
     $this->finaliseSetup($options, $projectPath, $output);
     $this->showCredentials($config, $output);
     Notification::send('Magento 2 was successfully installed!');
 }
All Usage Examples Of Magestead\Service\Notification::send
Notification