📂 FileMgr
📍
/var/www/vhosts/nursoft.al/public_html/NurSoft/push/src/Handler
✏️ Edit File: /var/www/vhosts/nursoft.al/public_html/NurSoft/push/src/Handler/HandlerFactory.php
⬅ Kembali
<?php /** * PHP APNS. * * @author Gennady Telegin <gtelegin@gmail.com> * * This source file is subject to the license that is bundled * with this source code in the file LICENSE. */ namespace Apns\Handler; /** * Class HandlerFactory. */ class HandlerFactory { /** * Choose preferable handler according available libraries and their capabilities. * * @return callable * * @throws \LogicException */ public static function create() { if (class_exists('\GuzzleHttp\Client')) { return new GuzzleHandler(); } throw new \LogicException( 'PHP APNS library requires one of network libraries be installed: %s', implode(',', ['guzzlehttp/guzzle']) ); } }
💾 Simpan File
Batal
⬅ Naik ke src
2 item
Nama
Tipe
Ukuran
Diubah
Aksi
🐘
GuzzleHandler.php
php
2.2 KB
2021-06-17 11:19
✏️ Edit
👁️ View
🗑 Hapus
🐘
HandlerFactory.php
php
771 B
2021-06-17 11:19
✏️ Edit
👁️ View
🗑 Hapus