升级指南
- 调整配置文件
config/cache.php
和config/database.php
一维数组变成二维数组
cache.php
<?php
return [
'default' => [
'adapter' => \Symfony\Component\Cache\Adapter\FilesystemAdapter::class,
'params' => [
],
],
];
database.php
<?php
return [
'default' => [
'adapter' => 'mysql',
'name' => 'ci',
'host' => '127.0.0.1',
'user' => 'travis',
'pass' => '',
'charset' => 'utf8',
'port' => 3306,
]
];
调整内置服务器命名空间及对象名,
将目录
Http/Controller
改为Controller
,命名空间也改为Controller
应用日志配置修改为数组:
<?php
return [
// ...
'log' => [
[\Monolog\Handler\StreamHandler::class, 'error.log', \Monolog\Logger::ERROR],
[\Monolog\Handler\StreamHandler::class, 'access.log', \Monolog\Logger::INFO],
],
// ...
];
- 单元测试基类命名空间修改
FastD\Test\TestCase
=>FastD\TestCase