Skip to content

Commit 793a21b

Browse files
committed
Release v4.6.4
1 parent d357624 commit 793a21b

File tree

4 files changed

+18
-25
lines changed

4 files changed

+18
-25
lines changed

app/Config/Database.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ class Database extends Config
182182
'port' => 3306,
183183
'foreignKeys' => true,
184184
'busyTimeout' => 1000,
185+
'synchronous' => null,
185186
'dateFormat' => [
186187
'date' => 'Y-m-d',
187188
'datetime' => 'Y-m-d H:i:s',

app/Config/Paths.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
* share a system folder between multiple applications, and more.
1313
*
1414
* All paths are relative to the project's root folder.
15+
*
16+
* NOTE: This class is required prior to Autoloader instantiation,
17+
* and does not extend BaseConfig.
1518
*/
1619
class Paths
1720
{

app/Controllers/BaseController.php

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,56 +3,43 @@
33
namespace App\Controllers;
44

55
use CodeIgniter\Controller;
6-
use CodeIgniter\HTTP\CLIRequest;
7-
use CodeIgniter\HTTP\IncomingRequest;
86
use CodeIgniter\HTTP\RequestInterface;
97
use CodeIgniter\HTTP\ResponseInterface;
108
use Psr\Log\LoggerInterface;
119

1210
/**
13-
* Class BaseController
14-
*
1511
* BaseController provides a convenient place for loading components
1612
* and performing functions that are needed by all your controllers.
13+
*
1714
* Extend this class in any new controllers:
15+
* ```
1816
* class Home extends BaseController
17+
* ```
1918
*
20-
* For security be sure to declare any new methods as protected or private.
19+
* For security, be sure to declare any new methods as protected or private.
2120
*/
2221
abstract class BaseController extends Controller
2322
{
24-
/**
25-
* Instance of the main Request object.
26-
*
27-
* @var CLIRequest|IncomingRequest
28-
*/
29-
protected $request;
30-
31-
/**
32-
* An array of helpers to be loaded automatically upon
33-
* class instantiation. These helpers will be available
34-
* to all other controllers that extend BaseController.
35-
*
36-
* @var list<string>
37-
*/
38-
protected $helpers = [];
39-
4023
/**
4124
* Be sure to declare properties for any property fetch you initialized.
4225
* The creation of dynamic property is deprecated in PHP 8.2.
4326
*/
27+
4428
// protected $session;
4529

4630
/**
4731
* @return void
4832
*/
4933
public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
5034
{
51-
// Do Not Edit This Line
35+
// Load here all helpers you want to be available in your controllers that extend BaseController.
36+
// Caution: Do not put the this below the parent::initController() call below.
37+
// $this->helpers = ['form', 'url'];
38+
39+
// Caution: Do not edit this line.
5240
parent::initController($request, $response, $logger);
5341

5442
// Preload any models, libraries, etc, here.
55-
56-
// E.g.: $this->session = service('session');
43+
// $this->session = service('session');
5744
}
5845
}

preload.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ public function load(): void
101101
}
102102

103103
require_once $file[0];
104-
echo 'Loaded: ' . $file[0] . "\n";
104+
// Uncomment only for debugging (to inspect which files are included).
105+
// Never use this in production - preload scripts must not generate output.
106+
// echo 'Loaded: ' . $file[0] . "\n";
105107
}
106108
}
107109
}

0 commit comments

Comments
 (0)