Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php namespace App;
- class Facade {
- public static function __callStatic($method, $args) {
- $object = static::getAccessor();
- $instance = new $object;
- $instance->$method(...$args);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement