Source of file Fetcher.php
Size: 0,862 Bytes - Last Modified: 2021-12-23T10:30:03+00:00
/var/www/docs.ssmods.com/process/src/src/Traits/Fetcher.php
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 | <?php namespace SilverStripe\EnvironmentCheck\Traits; use SilverStripe\Control\Director; /** * Simple helper for env checks which require HTTP clients. * * @package environmentcheck */ trait Fetcher { /** * Client for making requests, set vi Injector. * * @see SilverStripe\EnvironmentCheck\Services * * @var GuzzleHttp\Client */ public $client = null; /** * Absolute URL for requests. * * @var string */ protected $url; /** * Set URL for requests. * * @param string $url Relative URL * @return self */ public function setURL($url) { $this->url = Director::absoluteURL($url); return $this; } /** * Getter for URL * * @return string */ public function getURL() { return $this->url; } } |