升级指南

v3.1 -> v3.2

无痕升级

v3.0 -> v3.1

  • 调整配置文件 config/cache.phpconfig/database.php 一维数组变成二维数组
cache.php
  1. <?php
  2. return [
  3. 'default' => [
  4. 'adapter' => \Symfony\Component\Cache\Adapter\FilesystemAdapter::class,
  5. 'params' => [
  6. ],
  7. ],
  8. ];
database.php
  1. <?php
  2. return [
  3. 'default' => [
  4. 'adapter' => 'mysql',
  5. 'name' => 'ci',
  6. 'host' => '127.0.0.1',
  7. 'user' => 'travis',
  8. 'pass' => '',
  9. 'charset' => 'utf8',
  10. 'port' => 3306,
  11. ]
  12. ];
  • 调整内置服务器命名空间及对象名,

  • 将目录 Http/Controller 改为 Controller,命名空间也改为 Controller

  • 应用日志配置修改为数组:

  1. <?php
  2. return [
  3. // ...
  4. 'log' => [
  5. [\Monolog\Handler\StreamHandler::class, 'error.log', \Monolog\Logger::ERROR],
  6. [\Monolog\Handler\StreamHandler::class, 'access.log', \Monolog\Logger::INFO],
  7. ],
  8. // ...
  9. ];
  • 单元测试基类命名空间修改 FastD\Test\TestCase => FastD\TestCase