Skip to content

Commit d6d4627

Browse files
committed
Merge branch '4.next' into 4.x
2 parents 1fe275f + ae21186 commit d6d4627

File tree

6 files changed

+20
-10
lines changed

6 files changed

+20
-10
lines changed

composer.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
"license": "MIT",
77
"require": {
88
"php": ">=7.4",
9-
"cakephp/cakephp": "4.4.*",
10-
"cakephp/migrations": "^3.2",
9+
"cakephp/cakephp": "^4.5.0-RC1",
10+
"cakephp/migrations": "^3.7",
1111
"cakephp/plugin-installer": "^1.3",
1212
"mobiledetect/mobiledetectlib": "^3.74"
1313
},
1414
"require-dev": {
15-
"cakephp/bake": "^2.6",
15+
"cakephp/bake": "^2.8",
1616
"cakephp/cakephp-codesniffer": "^4.5",
17-
"cakephp/debug_kit": "^4.5",
17+
"cakephp/debug_kit": "^4.9",
1818
"josegonzalez/dotenv": "^4.0",
19-
"phpunit/phpunit": "~8.5.0 || ^9.3"
19+
"phpunit/phpunit": "^9.6"
2020
},
2121
"suggest": {
2222
"markstory/asset_compress": "An asset compression plugin which provides file concatenation and a flexible filter system for preprocessing and minification.",
@@ -46,6 +46,7 @@
4646
"cs-fix": "phpcbf --colors -p",
4747
"test": "phpunit --colors=always"
4848
},
49+
"minimum-stability": "dev",
4950
"prefer-stable": true,
5051
"config": {
5152
"sort-packages": true,

config/app_local.example.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
'password' => 'secret',
7171
'database' => 'test_myapp',
7272
//'schema' => 'myapp',
73-
'url' => env('DATABASE_TEST_URL', 'sqlite://127.0.0.1/tests.sqlite'),
73+
'url' => env('DATABASE_TEST_URL', 'sqlite://127.0.0.1/tmp/tests.sqlite'),
7474
],
7575
],
7676

config/bootstrap.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,3 +221,9 @@
221221
//Inflector::rules('plural', ['/^(inflect)or$/i' => '\1ables']);
222222
//Inflector::rules('irregular', ['red' => 'redlings']);
223223
//Inflector::rules('uninflected', ['dontinflectme']);
224+
225+
// set a custom date and time format
226+
// see https://book.cakephp.org/4/en/core-libraries/time.html#setting-the-default-locale-and-format-string
227+
// and https://unicode-org.github.io/icu/userguide/format_parse/datetime/#datetime-format-syntax
228+
//\Cake\I18n\FrozenDate::setToStringFormat('dd.MM.yyyy');
229+
//\Cake\I18n\FrozenTime::setToStringFormat('dd.MM.yyyy HH:mm');

src/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function middleware(MiddlewareQueue $middlewareQueue): MiddlewareQueue
7777
$middlewareQueue
7878
// Catch any exceptions in the lower layers,
7979
// and make an error page/response
80-
->add(new ErrorHandlerMiddleware(Configure::read('Error')))
80+
->add(new ErrorHandlerMiddleware(Configure::read('Error'), $this))
8181

8282
// Handle plugin/theme assets like CakePHP normally does.
8383
->add(new AssetMiddleware([

src/Controller/ErrorController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function initialize(): void
3838
/**
3939
* beforeFilter callback.
4040
*
41-
* @param \Cake\Event\EventInterface $event Event.
41+
* @param \Cake\Event\EventInterface<\App\Controller\ErrorController> $event Event.
4242
* @return \Cake\Http\Response|null|void
4343
*/
4444
public function beforeFilter(EventInterface $event)
@@ -48,7 +48,7 @@ public function beforeFilter(EventInterface $event)
4848
/**
4949
* beforeRender callback.
5050
*
51-
* @param \Cake\Event\EventInterface $event Event.
51+
* @param \Cake\Event\EventInterface<\App\Controller\ErrorController> $event Event.
5252
* @return \Cake\Http\Response|null|void
5353
*/
5454
public function beforeRender(EventInterface $event)
@@ -61,7 +61,7 @@ public function beforeRender(EventInterface $event)
6161
/**
6262
* afterFilter callback.
6363
*
64-
* @param \Cake\Event\EventInterface $event Event.
64+
* @param \Cake\Event\EventInterface<\App\Controller\ErrorController> $event Event.
6565
* @return \Cake\Http\Response|null|void
6666
*/
6767
public function afterFilter(EventInterface $event)

webroot/css/cake.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ body {
6767
font-weight: bold;
6868
padding: 0 0.4rem;
6969
}
70+
.actions a:first-child {
71+
padding-left: 0;
72+
}
7073
th {
7174
white-space: nowrap;
7275
}

0 commit comments

Comments
 (0)