| 1 |
<?php |
| 2 |
declare(strict_types=1); |
| 3 |
|
| 4 |
namespace Imagify\Avif\RewriteRules; |
| 5 |
|
| 6 |
use Imagify\WriteFile\AbstractNginxDirConfFile; |
| 7 |
|
| 8 |
/** |
| 9 |
* Add and remove rewrite rules to the imagify.conf file to display AVIF images on the site. |
| 10 |
*/ |
| 11 |
class Nginx extends AbstractNginxDirConfFile { |
| 12 |
|
| 13 |
/** |
| 14 |
* Name of the tag used as block delimiter. |
| 15 |
* |
| 16 |
* @var string |
| 17 |
*/ |
| 18 |
const TAG_NAME = 'Imagify: rewrite rules for avif'; |
| 19 |
|
| 20 |
/** |
| 21 |
* Get unfiltered new contents to write into the file. |
| 22 |
* |
| 23 |
* @access protected |
| 24 |
* |
| 25 |
* @return string |
| 26 |
*/ |
| 27 |
protected function get_raw_new_contents() { |
| 28 |
return ''; |
| 29 |
} |
| 30 |
} |
| 31 |
|