Advertisement
Guest User

iharos_facade

a guest
Sep 3rd, 2014
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.41 KB | None | 0 0
  1. <?php
  2. // Facade.php
  3.  
  4. namespace Iharos\Kernel\Facade;
  5. //namespace Iharos;
  6. //use Iharos\Kernel\Iharos;
  7.  
  8. class Facade {
  9.     public static function __callStatic($method, $args)
  10.     {
  11.         echo "<br>__callStatic, module ID: '" . static::getModuleId() . "'";
  12.         $app = Iharos::getInstance();
  13.  
  14.         $class = $app->manifest( static::getModuleId() );
  15.  
  16.         return call_user_func_array(array($class, $method), $args);
  17.     }
  18. }
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement