Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
GeneratedCode.php
Go to the documentation of this file.
1 <?php
7 
8 use Magento\Mtf\Util\Protocol\CurlInterface;
10 
15 {
19  const URL = 'dev/tests/functional/utils/deleteMagentoGeneratedCode.php';
20 
26  private $transport;
27 
31  public function __construct(CurlTransport $transport)
32  {
33  $this->transport = $transport;
34  }
35 
41  public function delete()
42  {
43  $url = $_ENV['app_frontend_url'] . self::URL;
44  $curl = $this->transport;
45  $curl->write($url, [], CurlInterface::GET);
46  $curl->read();
47  $curl->close();
48  }
49 }
__construct(CurlTransport $transport)