• File: UpgradeCore.php
  • Full Path: /var/www/crm_set/application/services/upgrade/UpgradeCore.php
  • Date Modified: 09/21/2026 4:20 AM
  • File size: 565 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

namespace app\services\upgrade;

defined('BASEPATH') or exit('No direct script access allowed');

use app\services\upgrade\UpgradeAdapter;

@ini_set('memory_limit', '256M');
@ini_set('max_execution_time', 240);

class UpgradeCore
{
    private $adapter;

    public function __construct(CoreInterface $adapter)
    {
        $this->adapter = $adapter;
    }

    public function perform()
    {
        return $this->adapter->perform($this->adapter->getConfig()->zipFile);
    }

    public function getAdapter()
    {
        return $this->adapter;
    }
}