Skip to content

Commit 2dac3a8

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into 4.4
2 parents 12f3867 + a766859 commit 2dac3a8

File tree

25 files changed

+187
-96
lines changed

25 files changed

+187
-96
lines changed

admin/RELEASE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ the existing content.
8585
* Title: `4.x.x Ready code`
8686
* Description: blank
8787
* Merge the PR then create a new Release:
88-
* Version: `v4.x.x`
88+
* Tag: `v4.x.x` (Create new tag)
8989
* Target: `master`
9090
* Title: `CodeIgniter 4.x.x`
9191
* Description:
@@ -97,7 +97,7 @@ the existing content.
9797
## New Contributors
9898
*
9999

100-
Full Changelog: https://github.com/codeigniter4/CodeIgniter4/compare/v4.x.x...v4.x.x
100+
**Full Changelog**: https://github.com/codeigniter4/CodeIgniter4/compare/v4.x.x...v4.x.x
101101
```
102102
* Watch for the "Deploy Distributable Repos" action to make sure **framework**,
103103
**appstarter**, and **userguide** get updated

system/Encryption/Handlers/BaseHandler.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,12 @@
1313

1414
use CodeIgniter\Encryption\EncrypterInterface;
1515
use Config\Encryption;
16-
use Psr\Log\LoggerInterface;
1716

1817
/**
1918
* Base class for encryption handling
2019
*/
2120
abstract class BaseHandler implements EncrypterInterface
2221
{
23-
/**
24-
* Logger instance to record error messages and warnings.
25-
*
26-
* @var LoggerInterface
27-
*/
28-
protected $logger;
29-
3022
/**
3123
* Constructor
3224
*/

system/ThirdParty/Kint/Utils.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@ public static function composerGetExtras(string $key = 'kint'): array
150150
*/
151151
public static function composerSkipFlags(): void
152152
{
153+
if (\defined('KINT_SKIP_FACADE') && \defined('KINT_SKIP_HELPERS')) {
154+
return;
155+
}
156+
153157
$extras = self::composerGetExtras();
154158

155159
if (!empty($extras['disable-facade']) && !\defined('KINT_SKIP_FACADE')) {

system/ThirdParty/Kint/resources/compiled/rich.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

user_guide_src/source/changelogs/v4.1.1.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Bugs Fixed
1414

1515
- Fixed an issue where ``.gitattributes`` was preventing framework downloads.
1616

17-
Note that this fix was also applied retroactively to ``4.0.5`` on the **framework** repo.
17+
Note that this fix was also applied retroactively to 4.0.5 on the **framework** repo.
1818

1919
See the repo's
2020
`CHANGELOG_4.1.md <https://github.com/codeigniter4/CodeIgniter4/blob/develop/changelogs/CHANGELOG_4.1.md>`_
Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
<?php
22

3-
namespace App\Controllers;
3+
namespace App\Commands;
44

5+
use CodeIgniter\CLI\BaseCommand;
56
use CodeIgniter\CLI\CLI;
6-
use CodeIgniter\Controller;
77

8-
class MyController extends Controller
8+
class MyCommand extends BaseCommand
99
{
1010
// ...
11+
12+
public function run(array $params)
13+
{
14+
// ...
15+
}
1116
}

user_guide_src/source/cli/spark_commands.rst

Lines changed: 53 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ CodeIgniter ships with the official command **spark** and built-in commands.
66

77
.. contents::
88
:local:
9-
:depth: 2
9+
:depth: 3
1010

1111
****************
1212
Running Commands
@@ -16,12 +16,42 @@ Running via CLI
1616
===============
1717

1818
The commands are run from the command line, in the project root directory.
19-
The command file **spark** has been provided that is used to run any of the CLI commands::
19+
The command file **spark** has been provided that is used to run any of the CLI commands.
20+
21+
Showing List of Commands
22+
------------------------
23+
24+
When called **spark** without specifying a command, a simple help page is displayed
25+
that also provides a list of available commands and their descriptions, sorted by
26+
categories::
2027

2128
> php spark
2229

23-
When called without specifying a command, a simple help page is displayed that also provides a list of
24-
available commands.
30+
spark list
31+
^^^^^^^^^^
32+
33+
``php spark`` is the exactly same as the ``list`` command::
34+
35+
> php spark list
36+
37+
You may also use the ``--simple`` option to get a raw list of all available commands,
38+
sorted alphabetically::
39+
40+
> php spark list --simple
41+
42+
Showing Help
43+
------------
44+
45+
You can get help about any CLI command using the ``help`` command as follows::
46+
47+
> php spark help db:seed
48+
49+
Since v4.3.0, you can also use the ``--help`` option instead of the ``help`` command::
50+
51+
> php spark db:seed --help
52+
53+
Running a Command
54+
-----------------
2555

2656
You should pass the name of the command as the first argument to run that command::
2757

@@ -31,17 +61,31 @@ Some commands take additional arguments, which should be provided directly after
3161

3262
> php spark db:seed DevUserSeeder
3363

34-
You may always pass ``--no-header`` to suppress the header output, helpful for parsing results::
35-
36-
> php spark cache:clear --no-header
37-
3864
For all of the commands CodeIgniter provides, if you do not provide the required arguments, you will be prompted
3965
for the information it needs to run correctly::
4066

41-
> php spark make::controller
67+
> php spark make:controller
4268

4369
Controller class name :
4470

71+
Suppressing Header Output
72+
-------------------------
73+
74+
When you run a command, the header with CodeIgniter version and the current time
75+
is output::
76+
77+
> php spark env
78+
79+
CodeIgniter v4.3.5 Command Line Tool - Server Time: 2023-06-16 12:45:31 UTC+00:00
80+
81+
Your environment is currently set as development.
82+
83+
You may always pass ``--no-header`` to suppress the header output, helpful for parsing results::
84+
85+
> php spark env --no-header
86+
87+
Your environment is currently set as development.
88+
4589
Calling Commands
4690
================
4791

@@ -55,29 +99,3 @@ it from the command line.
5599

56100
All output from the command that is ran is captured when not run from the command line. It is returned from the command
57101
so that you can choose to display it or not.
58-
59-
******************
60-
Using Help Command
61-
******************
62-
63-
spark help
64-
==========
65-
66-
You can get help about any CLI command using the ``help`` command as follows::
67-
68-
> php spark help db:seed
69-
70-
Since v4.3.0, you can also use the ``--help`` option instead of the ``help`` command::
71-
72-
> php spark db:seed --help
73-
74-
spark list
75-
==========
76-
77-
Use the ``list`` command to get a list of available commands and their descriptions, sorted by categories::
78-
79-
> php spark list
80-
81-
You may also use the ``--simple`` option to get a raw list of all available commands, sorted alphabetically::
82-
83-
> php spark list --simple

user_guide_src/source/database/queries.rst

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,16 @@ Query Basics
1515
Regular Queries
1616
===============
1717

18-
To submit a query, use the **query** function:
18+
.. _db-query:
19+
20+
$db->query()
21+
------------
22+
23+
To submit a query, use the ``query()`` method:
1924

2025
.. literalinclude:: queries/001.php
2126

22-
The ``query()`` function returns a database result **object** when "read"
27+
The ``query()`` method returns a database result **object** when "read"
2328
type queries are run which you can use to :doc:`show your
2429
results <results>`. When "write" type queries are run it simply
2530
returns true or false depending on success or failure. When retrieving
@@ -34,6 +39,11 @@ this:
3439
Simplified Queries
3540
==================
3641

42+
.. _db-simplequery:
43+
44+
$db->simpleQuery()
45+
------------------
46+
3747
The ``simpleQuery()`` method is a simplified version of the
3848
``$db->query()`` method. It DOES
3949
NOT return a database result set, nor does it set the query timer, or

user_guide_src/source/helpers/inflector_helper.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ The following functions are available:
9494
Takes multiple words in camelCase or PascalCase and converts them to snake_case.
9595
Example:
9696

97-
.. literalinclude:: inflector_helper/007.php
97+
.. literalinclude:: inflector_helper/014.php
9898

9999
.. php:function:: humanize($string[, $separator = '_'])
100100

user_guide_src/source/installation/upgrade_4210.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Please refer to the upgrade instructions corresponding to your installation meth
1515
Project Files
1616
*************
1717

18-
Version ``4.2.10`` did not alter any executable code in project files.
18+
Version 4.2.10 did not alter any executable code in project files.
1919

2020
All Changes
2121
===========

0 commit comments

Comments
 (0)