✏️ 正在编辑: ConfigApi.php
路径:
/srv/systems_dir/yuppiecred/application/services/ConfigApi.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Service_ConfigApi { /** @var string */ private const CONFIG_PATH = "/configs/importacao.php"; /** @var Zend_Config */ private $config; public function __construct() { if (!file_exists(CLIENT_PATH . self::CONFIG_PATH)) { $this->config = null; return; } $content = include CLIENT_PATH . self::CONFIG_PATH; try { $this->config = new Zend_Config($content); } catch (Throwable $throwable) { $this->config = null; } } /** * @return Zend_Config|null */ public function get(): ?Zend_Config { return $this->config; } }
💾 保存文件
← 返回文件管理器