Skip to content

Commit a388e63

Browse files
committed
Release 4.0.0-alpha.5
1 parent 1743947 commit a388e63

File tree

221 files changed

+1378
-3691
lines changed

Some content is hidden

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

221 files changed

+1378
-3691
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# CodeIgniter 4 Framework
22

33
## What is CodeIgniter?
4+
45
CodeIgniter is a PHP full-stack web framework that is light, fast, flexible, and secure.
56
More information can be found at the [official site](http://codeigniter.com).
67

@@ -29,6 +30,7 @@ framework are exposed.
2930
The user guide updating and deployment is a bit awkward at the moment, but we are working on it!
3031

3132
## Repository Management
33+
3234
We use Github issues to track **BUGS** and to track approved **DEVELOPMENT** work packages.
3335
We use our [forum](http://forum.codeigniter.com) to provide SUPPORT and to discuss
3436
FEATURE REQUESTS.
@@ -51,12 +53,14 @@ Remember that some components that were part of CodeIgniter 3 are being moved
5153
to optional packages, with their own repository.
5254

5355
## Contributing
56+
5457
We welcome contributions from the community.
5558

5659
Please read the [*Contributing to CodeIgniter*](https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing.md) section in the development repository.
5760

5861
## Server Requirements
59-
PHP version 7.1 or higher is required, with the following extensions installed:
62+
63+
PHP version 7.2 or higher is required, with the following extensions installed:
6064

6165
- [intl](http://php.net/manual/en/intl.requirements.php)
6266
- [libcurl](http://php.net/manual/en/curl.requirements.php) if you plan to use the HTTP\CURLRequest library

app/Config/Autoload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function __construct()
3636
* to their location on the file system. These are used by the
3737
* Autoloader to locate files the first time they have been instantiated.
3838
*
39-
* The '/application' and '/system' directories are already mapped for
39+
* The '/app' and '/system' directories are already mapped for
4040
* you. You may change the name of the 'App' namespace if you wish,
4141
* but this should be done prior to creating any namespaced classes,
4242
* else you will need to modify all of those classes for this to work.

app/Config/Email.php

Lines changed: 0 additions & 161 deletions
This file was deleted.

app/Config/Filters.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ class Filters extends BaseConfig
77
// Makes reading things below nicer,
88
// and simpler to change out script that's used.
99
public $aliases = [
10-
'csrf' => \App\Filters\CSRF::class,
11-
'toolbar' => \App\Filters\DebugToolbar::class,
12-
'honeypot' => \App\Filters\Honeypot::class,
10+
'csrf' => \CodeIgniter\Filters\CSRF::class,
11+
'toolbar' => \CodeIgniter\Filters\DebugToolbar::class,
12+
'honeypot' => \CodeIgniter\Filters\Honeypot::class,
1313
];
1414

1515
// Always applied before every request

app/Config/Modules.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@ class Modules
1414
*/
1515
public $enabled = true;
1616

17+
/*
18+
|--------------------------------------------------------------------------
19+
| Auto-Discovery Within Composer Packages Enabled?
20+
|--------------------------------------------------------------------------
21+
|
22+
| If true, then auto-discovery will happen across all namespaces loaded
23+
| by Composer, as well as the namespaces configured locally.
24+
*/
25+
public $discoverInComposer = true;
26+
1727
/*
1828
|--------------------------------------------------------------------------
1929
| Auto-discover Rules

app/Config/Paths.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* Holds the paths that are used by the system to
5-
* locate the main directories, application, system, etc.
5+
* locate the main directories, app, system, etc.
66
* Modifying these allows you to re-structure your application,
77
* share a system folder between multiple applications, and more.
88
*
@@ -35,7 +35,7 @@ class Paths
3535
*
3636
* NO TRAILING SLASH!
3737
*/
38-
public $appDirectory = __DIR__ . '/../../app';
38+
public $appDirectory = __DIR__ . '/..';
3939

4040
/*
4141
* ---------------------------------------------------------------
@@ -45,7 +45,7 @@ class Paths
4545
* This variable must contain the name of your "writable" directory.
4646
* The writable directory allows you to group all directories that
4747
* need write permission to a single place that can be tucked away
48-
* for maximum security, keeping it out of the application and/or
48+
* for maximum security, keeping it out of the app and/or
4949
* system directories.
5050
*/
5151
public $writableDirectory = __DIR__ . '/../../writable';
@@ -58,7 +58,7 @@ class Paths
5858
* This variable must contain the name of your "tests" directory.
5959
* The writable directory allows you to group all directories that
6060
* need write permission to a single place that can be tucked away
61-
* for maximum security, keeping it out of the application and/or
61+
* for maximum security, keeping it out of the app and/or
6262
* system directories.
6363
*/
6464
public $testsDirectory = __DIR__ . '/../../tests';
@@ -70,8 +70,8 @@ class Paths
7070
*
7171
* This variable must contain the name of the directory that
7272
* contains the view files used by your application. By
73-
* default this is in `application/Views`. This value
73+
* default this is in `app/Views`. This value
7474
* is used when no value is provided to `Services::renderer()`.
7575
*/
76-
public $viewDirectory = __DIR__ . '/../../app/Views';
76+
public $viewDirectory = __DIR__ . '/../Views';
7777
}

app/Config/Services.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,4 @@ class Services extends CoreServices
3030
//
3131
// return new \CodeIgniter\Example();
3232
// }
33-
34-
public static function honeypot(BaseConfig $config = null, $getShared = true)
35-
{
36-
if ($getShared)
37-
{
38-
return static::getSharedInstance('honeypot', $config);
39-
}
40-
41-
if (is_null($config))
42-
{
43-
$config = new \Config\Honeypot();
44-
}
45-
46-
return new \CodeIgniter\Honeypot\Honeypot($config);
47-
}
48-
4933
}

app/Config/Toolbar.php

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,43 @@ class Toolbar extends BaseConfig
2626
\CodeIgniter\Debug\Toolbar\Collectors\Routes::class,
2727
\CodeIgniter\Debug\Toolbar\Collectors\Events::class,
2828
];
29+
30+
/*
31+
|--------------------------------------------------------------------------
32+
| Max History
33+
|--------------------------------------------------------------------------
34+
| The Toolbar allows you to view recent requests that have been made to
35+
| the application while the toolbar is active. This allows you to quickly
36+
| view and compare multiple requests.
37+
|
38+
| $maxHistory sets a limit on the number of past requests that are stored,
39+
| helping to conserve file space used to store them. You can set it to
40+
| 0 (zero) to not have any history stored, or -1 for unlimited history.
41+
|
42+
*/
2943
public $maxHistory = 20;
30-
public $viewsPath = SYSTEMPATH . 'Debug/Toolbar/Views/';
44+
45+
/*
46+
|--------------------------------------------------------------------------
47+
| Toolbar Views Path
48+
|--------------------------------------------------------------------------
49+
| The full path to the the views that are used by the toolbar.
50+
| MUST have a trailing slash.
51+
|
52+
*/
53+
public $viewsPath = SYSTEMPATH . 'Debug/Toolbar/Views/';
54+
55+
/*
56+
|--------------------------------------------------------------------------
57+
| Max Queries
58+
|--------------------------------------------------------------------------
59+
| If the Database Collector is enabled, it will log every query that the
60+
| the system generates so they can be displayed on the toolbar's timeline
61+
| and in the query log. This can lead to memory issues in some instances
62+
| with hundreds of queries.
63+
|
64+
| $maxQueries defines the maximum amount of queries that will be stored.
65+
|
66+
*/
67+
public $maxQueries = 100;
3168
}

0 commit comments

Comments
 (0)