Initial commit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace FluentMail\App;
|
||||
|
||||
use FluentMail\Includes\Core\Application;
|
||||
|
||||
class App
|
||||
{
|
||||
public static function getInstance($module = null)
|
||||
{
|
||||
$app = Application::getInstance();
|
||||
|
||||
if ($module) {
|
||||
return $app[$module];
|
||||
}
|
||||
|
||||
return $app;
|
||||
}
|
||||
|
||||
public static function __callStatic($method, $params)
|
||||
{
|
||||
return static::getInstance($method);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user