1<?php
2/*
3This program is free software; you can redistribute it and/or
4modify it under the terms of the GNU General Public License
5version 2 as published by the Free Software Foundation.
6
7This program is distributed in the hope that it will be useful,
8but WITHOUT ANY WARRANTY; without even the implied warranty of
9MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10GNU General Public License for more details.
11
12You should have received a copy of the GNU General Public License along
13with this program; if not, write to the Free Software Foundation, Inc.,
1451 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
15*/
16
17namespace Fossology\Lib\Application;
18
19/**
20 * @file
21 * @brief Service to create new curl request handler.
22 */
23
24/**
25 * @class CurlRequestService
26 * Service to create new curl request handler.
27 */
28class CurlRequestService
29{
30  /**
31   * Create and return a new curl request handler.
32   * @param string $url URL to access.
33   * @return Fossology::Lib::Application::CurlRequest
34   */
35  public function create($url)
36  {
37    return new CurlRequest($url);
38  }
39}
40