Skip to content

Commit 470279c

Browse files
committed
Release 4.0.0-rc.1
1 parent 821f9c9 commit 470279c

19 files changed

+491
-57
lines changed

.gitignore

+120-13
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,126 @@
1-
*/config/development
2-
*/logs/log-*.php
3-
!*/logs/index.html
4-
*/cache/*
5-
!*/cache/index.html
6-
!*/cache/.htaccess
1+
#-------------------------
2+
# Operating Specific Junk Files
3+
#-------------------------
74

5+
# OS X
6+
.DS_Store
7+
.AppleDouble
8+
.LSOverride
9+
10+
# OS X Thumbnails
11+
._*
12+
13+
# Windows image file caches
14+
Thumbs.db
15+
ehthumbs.db
16+
Desktop.ini
17+
18+
# Recycle Bin used on file shares
19+
$RECYCLE.BIN/
20+
21+
# Windows Installer files
22+
*.cab
23+
*.msi
24+
*.msm
25+
*.msp
26+
27+
# Windows shortcuts
28+
*.lnk
29+
30+
# Linux
31+
*~
32+
33+
# KDE directory preferences
34+
.directory
35+
36+
# Linux trash folder which might appear on any partition or disk
37+
.Trash-*
38+
39+
#-------------------------
40+
# Environment Files
41+
#-------------------------
42+
# These should never be under version control,
43+
# as it poses a security risk.
44+
.env
45+
.vagrant
46+
Vagrantfile
47+
48+
#-------------------------
49+
# Temporary Files
50+
#-------------------------
51+
writable/cache/*
52+
!writable/cache/index.html
53+
54+
writable/logs/*
55+
!writable/logs/index.html
56+
57+
writable/session/*
58+
!writable/session/index.html
59+
60+
writable/uploads/*
61+
!writable/uploads/index.html
62+
63+
writable/debugbar/*
64+
65+
php_errors.log
66+
67+
#-------------------------
68+
# User Guide Temp Files
69+
#-------------------------
870
user_guide_src/build/*
971
user_guide_src/cilexer/build/*
1072
user_guide_src/cilexer/dist/*
1173
user_guide_src/cilexer/pycilexer.egg-info/*
1274

13-
#codeigniter 3
14-
application/logs/*
15-
!application/logs/index.html
16-
!application/logs/.htaccess
17-
/vendor/
18-
/nbproject/private/
19-
/nbproject/
75+
#-------------------------
76+
# Test Files
77+
#-------------------------
78+
tests/coverage*
79+
80+
# Don't save phpunit under version control.
81+
phpunit
82+
83+
#-------------------------
84+
# Composer
85+
#-------------------------
86+
vendor/
87+
composer.lock
88+
89+
#-------------------------
90+
# IDE / Development Files
91+
#-------------------------
92+
93+
# Modules Testing
94+
_modules/*
95+
96+
# phpenv local config
97+
.php-version
98+
99+
# Jetbrains editors (PHPStorm, etc)
100+
.idea/
101+
*.iml
102+
103+
# Netbeans
104+
nbproject/
105+
build/
106+
nbbuild/
107+
dist/
108+
nbdist/
109+
nbactions.xml
110+
nb-configuration.xml
111+
.nb-gradle/
112+
113+
# Sublime Text
114+
*.tmlanguage.cache
115+
*.tmPreferences.cache
116+
*.stTheme.cache
117+
*.sublime-workspace
118+
*.sublime-project
119+
.phpintel
120+
/api/
121+
122+
# Visual Studio Code
123+
.vscode/
124+
125+
/results/
126+
/phpunit*.xml

app/Common.php

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
/**
4+
* The goal of this file is to allow developers a location
5+
* where they can overwrite core procedural functions and
6+
* replace them with their own. This file is loaded during
7+
* the bootstrap process and is called during the frameworks
8+
* execution.
9+
*
10+
* This can be looked at as a `master helper` file that is
11+
* loaded early on, and may also contain additional functions
12+
* that you'd like to use throughout your entire application
13+
*
14+
* @link: https://codeigniter4.github.io/CodeIgniter4/
15+
*/

app/Config/Email.php

+164
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
1+
<?php
2+
namespace Config;
3+
4+
class Email
5+
{
6+
7+
/**
8+
* @var string
9+
*/
10+
public $fromEmail;
11+
12+
/**
13+
* @var string
14+
*/
15+
public $fromName;
16+
17+
/**
18+
* The "user agent"
19+
*
20+
* @var string
21+
*/
22+
public $userAgent = 'CodeIgniter';
23+
24+
/**
25+
* The mail sending protocol: mail, sendmail, smtp
26+
*
27+
* @var string
28+
*/
29+
public $protocol = 'mail';
30+
31+
/**
32+
* The server path to Sendmail.
33+
*
34+
* @var string
35+
*/
36+
public $mailPath = '/usr/sbin/sendmail';
37+
38+
/**
39+
* SMTP Server Address
40+
*
41+
* @var string
42+
*/
43+
public $SMTPHost;
44+
45+
/**
46+
* SMTP Username
47+
*
48+
* @var string
49+
*/
50+
public $SMTPUser;
51+
52+
/**
53+
* SMTP Password
54+
*
55+
* @var string
56+
*/
57+
public $SMTPPass;
58+
59+
/**
60+
* SMTP Port
61+
*
62+
* @var integer
63+
*/
64+
public $SMTPPort = 25;
65+
66+
/**
67+
* SMTP Timeout (in seconds)
68+
*
69+
* @var integer
70+
*/
71+
public $SMTPTimeout = 5;
72+
73+
/**
74+
* Enable persistent SMTP connections
75+
*
76+
* @var boolean
77+
*/
78+
public $SMTPKeepAlive = false;
79+
80+
/**
81+
* SMTP Encryption. Either tls or ssl
82+
*
83+
* @var string
84+
*/
85+
public $SMTPCrypto = 'tls';
86+
87+
/**
88+
* Enable word-wrap
89+
*
90+
* @var boolean
91+
*/
92+
public $wordWrap = true;
93+
94+
/**
95+
* Character count to wrap at
96+
*
97+
* @var integer
98+
*/
99+
public $wrapChars = 76;
100+
101+
/**
102+
* Type of mail, either 'text' or 'html'
103+
*
104+
* @var string
105+
*/
106+
public $mailType = 'text';
107+
108+
/**
109+
* Character set (utf-8, iso-8859-1, etc.)
110+
*
111+
* @var string
112+
*/
113+
public $charset = 'UTF-8';
114+
115+
/**
116+
* Whether to validate the email address
117+
*
118+
* @var boolean
119+
*/
120+
public $validate = false;
121+
122+
/**
123+
* Email Priority. 1 = highest. 5 = lowest. 3 = normal
124+
*
125+
* @var integer
126+
*/
127+
public $priority = 3;
128+
129+
/**
130+
* Newline character. (Use “\r\n” to comply with RFC 822)
131+
*
132+
* @var string
133+
*/
134+
public $CRLF = "\r\n";
135+
136+
/**
137+
* Newline character. (Use “\r\n” to comply with RFC 822)
138+
*
139+
* @var string
140+
*/
141+
public $newline = "\r\n";
142+
143+
/**
144+
* Enable BCC Batch Mode.
145+
*
146+
* @var boolean
147+
*/
148+
public $BCCBatchMode = false;
149+
150+
/**
151+
* Number of emails in each BCC batch
152+
*
153+
* @var integer
154+
*/
155+
public $BCCBatchSize = 200;
156+
157+
/**
158+
* Enable notify message from server
159+
*
160+
* @var boolean
161+
*/
162+
public $DSN = false;
163+
164+
}

app/Config/Encryption.php

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?php
2+
namespace Config;
3+
4+
use CodeIgniter\Config\BaseConfig;
5+
6+
/**
7+
* Encryption configuration.
8+
*
9+
* These are the settings used for encryption, if you don't pass a parameter
10+
* array to the encrypter for creation/initialization.
11+
*/
12+
class Encryption extends BaseConfig
13+
{
14+
/*
15+
|--------------------------------------------------------------------------
16+
| Encryption Key Starter
17+
|--------------------------------------------------------------------------
18+
|
19+
| If you use the Encryption class you must set an encryption key (seed).
20+
| You need to ensure it is long enough for the cipher and mode you plan to use.
21+
| See the user guide for more info.
22+
*/
23+
24+
public $key = '';
25+
26+
/*
27+
|--------------------------------------------------------------------------
28+
| Encryption driver to use
29+
|--------------------------------------------------------------------------
30+
|
31+
| One of the supported drivers, eg 'OpenSSL' or 'Sodium'.
32+
| The default driver, if you don't specify one, is 'OpenSSL'.
33+
*/
34+
public $driver = 'OpenSSL';
35+
36+
}

0 commit comments

Comments
 (0)