Skip to content

Commit 2ce7503

Browse files
committed
Merge branch '5.x' into 5.next
2 parents 94c9d3b + 2630756 commit 2ce7503

File tree

121 files changed

+12909
-4229
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+12909
-4229
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
steps:
2525
- uses: actions/checkout@v4
2626

27-
- uses: actions/setup-python@v4
27+
- uses: actions/setup-python@v5
2828
with:
2929
python-version: 3.11
3030

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717

1818
steps:
19-
- uses: actions/stale@v8
19+
- uses: actions/stale@v9
2020
with:
2121
repo-token: ${{ secrets.GITHUB_TOKEN }}
2222
stale-issue-message: 'This issue is stale because it has been open for 120 days with no activity. Remove the `stale` label or comment or this will be closed in 15 days'

config/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,5 @@
115115
.. |phpversion| replace:: **8.2**
116116
.. |minphpversion| replace:: 8.1
117117
"""
118+
119+
# todo_include_todos = True

en/appendices.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Appendices
44
Appendices contain information regarding the new features
55
introduced in each version and the migration path between versions.
66

7-
4.x Migration Guide
7+
5.x Migration Guide
88
===================
99

1010
.. toctree::
@@ -17,7 +17,7 @@ introduced in each version and the migration path between versions.
1717
Backwards Compatibility Shimming
1818
================================
1919

20-
If you need/want to shim 3.x behavior, or partially migrate in steps, check out
20+
If you need/want to shim 4.x behavior, or partially migrate in steps, check out
2121
the `Shim plugin <https://github.com/dereuromark/cakephp-shim>`__ that can help mitigate some BC breaking changes.
2222

2323
Forwards Compatibility Shimming

en/appendices/5-0-migration-guide.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ Database
132132
- ``Connection::disconnect()`` has been removed. Use
133133
``$connection->getDriver()->disconnect()`` instead.
134134
- ``cake.database.queries`` has been added as an alternative to the ``queriesLog`` scope
135+
- The ability to enable/disable ResultSet buffering has been removed. Results are always buffered.
135136

136137
Datasource
137138
----------

en/console-commands/input-output.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ Writing to ``stdout`` and ``stderr`` is another common operation in CakePHP::
195195
$io->err('Error message');
196196

197197
In addition to vanilla output methods, CakePHP provides wrapper methods that
198-
style output with appropriate ANSI colours::
198+
style output with appropriate ANSI colors::
199199

200200
// Green text on stdout
201201
$io->success('Success message');
@@ -307,9 +307,9 @@ new output style you could do::
307307
$io->setStyle('flashy', ['text' => 'magenta', 'blink' => true]);
308308

309309
This would then allow you to use a ``<flashy>`` tag in your shell output, and if
310-
ansi colours are enabled, the following would be rendered as blinking magenta
310+
ansi colors are enabled, the following would be rendered as blinking magenta
311311
text ``$this->out('<flashy>Whoooa</flashy> Something went wrong');``. When
312-
defining styles you can use the following colours for the ``text`` and
312+
defining styles you can use the following colors for the ``text`` and
313313
``background`` attributes:
314314

315315
* black
@@ -332,10 +332,10 @@ truthy value enables them.
332332
Adding a style makes it available on all instances of ConsoleOutput as well,
333333
so you don't have to redeclare styles for both stdout and stderr objects.
334334

335-
Turning Off Colouring
336-
=====================
335+
Turning Off Coloring
336+
====================
337337

338-
Although colouring is pretty, there may be times when you want to turn it off,
338+
Although coloring is pretty, there may be times when you want to turn it off,
339339
or force it on::
340340

341341
$io->outputAs(ConsoleOutput::RAW);
@@ -350,6 +350,6 @@ no styling is done at all. There are three modes you can use.
350350
This is a good mode to use if you are outputting XML or, want to debug why
351351
your styling isn't working.
352352

353-
By default on \*nix systems ConsoleOutput objects default to colour output.
353+
By default on \*nix systems ConsoleOutput objects default to color output.
354354
On Windows systems, plain output is the default unless the ``ANSICON``
355355
environment variable is present.

en/controllers.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ is invoked at the end of a Controller's constructor for this kind of use::
6868
{
6969
public function initialize(): void
7070
{
71-
// Always enable the CSRF component.
72-
$this->loadComponent('Csrf');
71+
// Always enable the FormProtection component.
72+
$this->loadComponent('FormProtection');
7373
}
7474
}
7575

@@ -320,8 +320,8 @@ actions, you can call ``addClasses()`` within your action too::
320320
// Rest of the action code
321321
}
322322

323-
If within your controller actions you need to process request or load data
324-
differently based on the controller action you can use
323+
If within your controller actions you need to process the request or load data
324+
differently based on the content type you can use
325325
:ref:`check-the-request`::
326326

327327
// In a controller action
@@ -510,7 +510,7 @@ want loaded, and any configuration data for them::
510510
public function initialize(): void
511511
{
512512
parent::initialize();
513-
$this->loadComponent('Csrf');
513+
$this->loadComponent('Flash');
514514
$this->loadComponent('Comments', Configure::read('Comments'));
515515
}
516516

en/controllers/components.rst

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Configuring Components
2525
======================
2626

2727
Many of the core components require configuration. One example would be
28-
the :doc:`/controllers/components/form-protection`. Configuration for these components,
28+
the :doc:`/controllers/components/form-protection`. Configuration for these components,
2929
and for components in general, is usually done via ``loadComponent()`` in your
3030
Controller's ``initialize()`` method or via the ``$components`` array::
3131

@@ -37,9 +37,8 @@ Controller's ``initialize()`` method or via the ``$components`` array::
3737
$this->loadComponent('FormProtection', [
3838
'unlockedActions' => ['index'],
3939
]);
40-
$this->loadComponent('Csrf');
40+
$this->loadComponent('Flash');
4141
}
42-
4342
}
4443

4544
You can configure components at runtime using the ``setConfig()`` method. Often,
@@ -58,7 +57,7 @@ to read and write configuration data::
5857
$this->FormProtection->getConfig('unlockedActions');
5958

6059
// Set config
61-
$this->Csrf->setConfig('cookieName', 'token');
60+
$this->Flash->setConfig('key', 'myFlash');
6261

6362
As with helpers, components will automatically merge their ``$_defaultConfig``
6463
property with constructor configuration to create the ``$_config`` property
@@ -193,12 +192,12 @@ component, through which we can access an instance of it::
193192

194193
// In a controller
195194
// Make the new component available at $this->Math,
196-
// as well as the standard $this->Csrf
195+
// as well as the standard $this->Flash
197196
public function initialize(): void
198197
{
199198
parent::initialize();
200199
$this->loadComponent('Math');
201-
$this->loadComponent('Csrf');
200+
$this->loadComponent('Flash');
202201
}
203202

204203
When including Components in a Controller you can also declare a
@@ -214,7 +213,7 @@ the Component::
214213
'precision' => 2,
215214
'randomGenerator' => 'srand',
216215
]);
217-
$this->loadComponent('Csrf');
216+
$this->loadComponent('Flash');
218217
}
219218

220219
The above would pass the array containing precision and randomGenerator to

en/development/testing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ and number passed.
111111

112112
.. note::
113113

114-
If you are on a Windows system you probably won't see any colours.
114+
If you are on a Windows system you probably won't see any colors.
115115

116116
Test Case Conventions
117117
=====================
@@ -412,7 +412,7 @@ contains the fixture extension:
412412
<!-- in phpunit.xml -->
413413
<!-- Setup the extension for fixtures -->
414414
<extensions>
415-
<extension class="\Cake\TestSuite\Fixture\PHPUnitExtension"/>
415+
<bootstrap class="Cake\TestSuite\Fixture\Extension\PHPUnitExtension"/>
416416
</extensions>
417417
418418
The extension is included in your application and plugins generated by ``bake``

en/intro/cakephp-folder-structure.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ View
5555

5656
.. note::
5757

58-
The folder ``Shell`` is not present by default.
58+
The folder ``Command`` is not present by default.
5959
You can add it when you need it.
6060

6161
.. meta::

0 commit comments

Comments
 (0)