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
webp-converter-for-media / src / Service / ServerConfigurator.php
webp-converter-for-media / src / Service Last commit date
BackupExcluder.php 2 weeks ago CacheIntegrator.php 2 weeks ago CloudflareConfigurator.php 2 weeks ago DeactivationModalLoader.php 2 weeks ago EnvDetector.php 2 weeks ago FileLoader.php 2 weeks ago MediaStatusViewer.php 2 weeks ago OptionsAccessManager.php 2 weeks ago PathsGenerator.php 2 weeks ago RestApiUnlocker.php 2 weeks ago ServerConfigurator.php 2 weeks ago SiteHealthDetector.php 2 weeks ago StatsManager.php 2 weeks ago TokenValidator.php 2 weeks ago ViewLoader.php 2 weeks ago WpCliManager.php 2 weeks ago
ServerConfigurator.php
20 lines
1 <?php
2
3 namespace WebpConverter\Service;
4
5 /**
6 * Manages required server configuration.
7 */
8 class ServerConfigurator {
9
10 public function set_memory_limit( int $value = 2 ): void {
11 ini_set( 'memory_limit', sprintf( '%sG', $value ) ); // phpcs:ignore
12 }
13
14 public function set_execution_time( int $seconds = 120 ): void {
15 if ( strpos( ini_get( 'disable_functions' ) ?: '', 'set_time_limit' ) === false ) {
16 set_time_limit( $seconds );
17 }
18 }
19 }
20