Subiendo proyecto completo sin restricciones de git ignore
This commit is contained in:
45
vendor/barryvdh/laravel-dompdf/src/Facade.php
vendored
Normal file
45
vendor/barryvdh/laravel-dompdf/src/Facade.php
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
namespace Barryvdh\DomPDF;
|
||||
|
||||
use Illuminate\Support\Facades\Facade as IlluminateFacade;
|
||||
|
||||
class Facade extends IlluminateFacade {
|
||||
|
||||
/**
|
||||
* Get the registered name of the component.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
protected static function getFacadeAccessor() { return 'dompdf.wrapper'; }
|
||||
|
||||
/**
|
||||
* Resolve a new instance
|
||||
*/
|
||||
public static function __callStatic($method, $args)
|
||||
{
|
||||
$instance = static::$app->make(static::getFacadeAccessor());
|
||||
|
||||
switch (count($args))
|
||||
{
|
||||
case 0:
|
||||
return $instance->$method();
|
||||
|
||||
case 1:
|
||||
return $instance->$method($args[0]);
|
||||
|
||||
case 2:
|
||||
return $instance->$method($args[0], $args[1]);
|
||||
|
||||
case 3:
|
||||
return $instance->$method($args[0], $args[1], $args[2]);
|
||||
|
||||
case 4:
|
||||
return $instance->$method($args[0], $args[1], $args[2], $args[3]);
|
||||
|
||||
default:
|
||||
return call_user_func_array(array($instance, $method), $args);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user