Ejemplo n.º 1
0
 /**
  * @constructor
  * @param ElementInterface $element
  * @param BlockFactory $blockFactory
  * @param BrowserInterface $browser
  * @param array $config
  */
 public function __construct(ElementInterface $element, BlockFactory $blockFactory, BrowserInterface $browser, array $config = [])
 {
     parent::__construct($element, $blockFactory, $browser, $config);
     $this->baseUrl = $this->browser->getUrl();
     if (substr($this->baseUrl, -1) !== '/') {
         $this->baseUrl = $this->baseUrl . '/';
     }
 }
Ejemplo n.º 2
0
 /**
  * @constructor
  * @param SimpleElement $element
  * @param BlockFactory $blockFactory
  * @param BrowserInterface $browser
  */
 public function __construct(SimpleElement $element, BlockFactory $blockFactory, BrowserInterface $browser)
 {
     parent::__construct($element, $blockFactory, $browser);
 }