App.php in FluentSMTP – WP Mail SMTP Plugin with Amazon SES, SendGrid, Mailgun, Postmark, Cloudflare, toSend, Gmail and Any SMTP trunk, at app/App.php
| 1 | <?php |
| 2 | |
| 3 | namespace FluentMail\App; |
| 4 | |
| 5 | use FluentMail\Includes\Core\Application; |
| 6 | |
| 7 | class App |
| 8 | { |
| 9 | public static function getInstance($module = null) |
| 10 | { |
| 11 | $app = Application::getInstance(); |
| 12 | |
| 13 | if ($module) { |
| 14 | return $app[$module]; |
| 15 | } |
| 16 | |
| 17 | return $app; |
| 18 | } |
| 19 | |
| 20 | public static function __callStatic($method, $params) |
| 21 | { |
| 22 | return static::getInstance($method); |
| 23 | } |
| 24 | } |
| 25 |