public function __construct($url) { $filePath = realpath($url); if (!$filePath || !file_exists($filePath)) { throw new FileNotFoundException($filePath); } $this->src = self::sanitize($filePath); }
public function __construct() { $path = __DIR__ . '/../../../scripts/facebook-hide-login.js'; parent::__construct($path); }