| 1 | <?php |
||
| 14 | class NginxProxy extends AbstractProxy |
||
| 15 | { |
||
| 16 | protected $binary = 'nginx'; |
||
| 17 | protected $configFile; |
||
| 18 | protected $port = 8080; |
||
| 19 | protected $pid = '/tmp/foshttpcache-nginx.pid'; |
||
| 20 | protected $cacheDir; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Constructor. |
||
| 24 | * |
||
| 25 | * @param string $configFile Path to NGINX configuration file |
||
| 26 | */ |
||
| 27 | public function __construct($configFile) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritdoc} |
||
| 35 | */ |
||
| 36 | public function start() |
||
| 48 | |||
| 49 | /** |
||
| 50 | * {@inheritdoc} |
||
| 51 | */ |
||
| 52 | public function stop() |
||
| 58 | |||
| 59 | /** |
||
| 60 | * {@inheritdoc} |
||
| 61 | */ |
||
| 62 | public function clear() |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @param string $cacheDir |
||
| 70 | */ |
||
| 71 | public function setCacheDir($cacheDir) |
||
| 75 | |||
| 76 | /** |
||
| 77 | * @return string |
||
| 78 | */ |
||
| 79 | public function getCacheDir() |
||
| 83 | } |
||
| 84 |