* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShop\PrestaShop\Core\Configuration; class UploadSizeConfiguration implements UploadSizeConfigurationInterface { /** * @var IniConfiguration */ private $iniConfiguration; /** * @param IniConfiguration $iniConfiguration */ public function __construct(IniConfiguration $iniConfiguration) { $this->iniConfiguration = $iniConfiguration; } /** * {@inheritdoc} */ public function getMaxUploadSizeInBytes(): int { return $this->iniConfiguration->getUploadMaxSizeInBytes(); } /** * {@inheritdoc} */ public function getPostMaxSizeInBytes(): int { return $this->iniConfiguration->getPostMaxSizeInBytes(); } }