You are here

public function BasePhantomJSDriver::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/jcalderonzumba/mink-phantomjs-driver/src/BasePhantomJSDriver.php \Zumba\Mink\Driver\BasePhantomJSDriver::__construct()

Instantiates the driver

Parameters

string $phantomHost browser "api" oriented host:

string $templateCache where we are going to store the templates cache:

File

vendor/jcalderonzumba/mink-phantomjs-driver/src/BasePhantomJSDriver.php, line 32

Class

BasePhantomJSDriver
Class BasePhantomJSDriver @package Zumba\Mink\Driver

Namespace

Zumba\Mink\Driver

Code

public function __construct($phantomHost, $templateCache = null) {
  $this->phantomHost = $phantomHost;
  $this->browser = new Browser($phantomHost);
  $this->templateLoader = new \Twig_Loader_Filesystem(realpath(__DIR__ . '/Resources/Script'));
  $this->templateEnv = new \Twig_Environment($this->templateLoader, array(
    'cache' => $this
      ->templateCacheSetup($templateCache),
    'strict_variables' => true,
  ));
}