Няма описание

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace Barryvdh\DomPDF;
  3. use Illuminate\Support\Facades\Facade as IlluminateFacade;
  4. class Facade extends IlluminateFacade {
  5. /**
  6. * Get the registered name of the component.
  7. *
  8. * @return string
  9. */
  10. protected static function getFacadeAccessor() { return 'dompdf'; }
  11. /**
  12. * Resolve a new instance
  13. */
  14. public static function __callStatic($method, $args)
  15. {
  16. $instance = static::$app->make(static::getFacadeAccessor());
  17. switch (count($args))
  18. {
  19. case 0:
  20. return $instance->$method();
  21. case 1:
  22. return $instance->$method($args[0]);
  23. case 2:
  24. return $instance->$method($args[0], $args[1]);
  25. case 3:
  26. return $instance->$method($args[0], $args[1], $args[2]);
  27. case 4:
  28. return $instance->$method($args[0], $args[1], $args[2], $args[3]);
  29. default:
  30. return call_user_func_array(array($instance, $method), $args);
  31. }
  32. }
  33. }