diff --git a/src/Facade/PhantomJs.php b/src/Facade/PhantomJs.php index a78d243..5b9a1d0 100644 --- a/src/Facade/PhantomJs.php +++ b/src/Facade/PhantomJs.php @@ -2,8 +2,10 @@ namespace Josh\Component\PhantomJs\Facade; -use JonnyW\PhantomJs\Engine; use Illuminate\Support\Facades\Facade; +use Josh\Component\PhantomJs\PhantomJs as PhantomJsComponent; +use JonnyW\PhantomJs\Engine; +use JonnyW\PhantomJs\Client; use JonnyW\PhantomJs\Http\CaptureRequest; use JonnyW\PhantomJs\Http\PdfRequest; use JonnyW\PhantomJs\Http\Request; @@ -14,22 +16,24 @@ use JonnyW\PhantomJs\Procedure\ProcedureCompilerInterface; /** - * @method static getLog - * @method static void isLazy - * @method static Engine getEngine - * @method static string getProcedure - * @method static void setProcedure($procedure) - * @method static MessageFactoryInterface getMessageFactory - * @method static ProcedureLoaderInterface getProcedureLoader - * @method static ProcedureCompilerInterface getProcedureCompiler - * @method static ResponseInterface send(RequestInterface $request, ResponseInterface $response) - * @method static PdfRequest createPdf(string $url, string $method = 'GET', int $timeout = 5000, array $headers = [], array $parameters = []) - * @method static CaptureRequest createImage(string $url, string $method = 'GET', int $timeout = 5000, array $headers = [], array $parameters = []) - * @method static CaptureRequest request(string $url, string $method = 'GET', int $timeout = 5000, array $headers = [], array $parameters = []) + * @method static PhantomJsComponent setBinaryPath($path) + * @method static PhantomJsComponent setDebug($debug) + * @method static PhantomJsComponent setCache($cache) + * @method static Engine getEngine() + * @method static PhantomJsServiceContainer getContainer() + * @method static Client getClient() + * @method static PhantomJsComponent setClient($client = null) + * @method static mixed getOptions() + * @method static PhantomJsComponent setOptions(array $options) + * @method static PhantomJsComponent isLazy() + * @method static CaptureRequest request(string $url, string $method = RequestInterface::METHOD_GET, int $timeout = 5000, array $headers = [], array $parameters = []) + * @method static PdfRequest createPdf(string $url, string $method = RequestInterface::METHOD_GET, int $timeout = 5000, array $headers = [], array $parameters = []) + * @method static CaptureRequest createImage(string $url, string $method = RequestInterface::METHOD_GET, int $timeout = 5000, array $headers = [], array $parameters = []) * @method static Request get(string $url, array $headers = [], array $parameters = []) * @method static Request post(string $url, array $headers = [], array $parameters = []) * @method static Request put(string $url, array $headers = [], array $parameters = []) * @method static Request delete(string $url, array $headers = [], array $parameters = []) + * @method static ResponseInterface send(RequestInterface $request, ResponseInterface $response = null) */ class PhantomJs extends Facade { @@ -44,4 +48,4 @@ protected static function getFacadeAccessor() { return 'phantomjs'; } -} \ No newline at end of file +}