File tree Expand file tree Collapse file tree 7 files changed +43
-25
lines changed
admin/starter/tests/_support/Libraries
system/Debug/Toolbar/Views
tests/system/Config/fixtures Expand file tree Collapse file tree 7 files changed +43
-25
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace Tests \Support \Libraries ;
4
4
5
+ use Config \App ;
6
+
5
7
/**
6
8
* Class ConfigReader
7
9
*
8
10
* An extension of BaseConfig that prevents the constructor from
9
11
* loading external values. Used to read actual local values from
10
12
* a config file.
11
13
*/
12
- class ConfigReader extends \ Config \ App
14
+ class ConfigReader extends App
13
15
{
14
16
public function __construct ()
15
17
{
Original file line number Diff line number Diff line change 9
9
* the LICENSE file that was distributed with this source code.
10
10
*/
11
11
12
+ use CodeIgniter \Boot ;
13
+ use Config \Paths ;
14
+
12
15
/*
13
16
*---------------------------------------------------------------
14
17
* Sample file for Preloading
@@ -69,10 +72,10 @@ public function __construct()
69
72
70
73
private function loadAutoloader (): void
71
74
{
72
- $ paths = new Config \ Paths ();
75
+ $ paths = new Paths ();
73
76
require rtrim ($ paths ->systemDirectory , '\\/ ' ) . DIRECTORY_SEPARATOR . 'Boot.php ' ;
74
77
75
- CodeIgniter \ Boot::preload ($ paths );
78
+ Boot::preload ($ paths );
76
79
}
77
80
78
81
/**
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
+ use CodeIgniter \Boot ;
4
+ use Config \Paths ;
5
+
3
6
/*
4
7
*---------------------------------------------------------------
5
8
* CHECK PHP VERSION
48
51
require FCPATH . '../app/Config/Paths.php ' ;
49
52
// ^^^ Change this line if you move your application folder
50
53
51
- $ paths = new Config \ Paths ();
54
+ $ paths = new Paths ();
52
55
53
56
// LOAD THE FRAMEWORK BOOTSTRAP FILE
54
57
require $ paths ->systemDirectory . '/Boot.php ' ;
55
58
56
- exit (CodeIgniter \ Boot::bootWeb ($ paths ));
59
+ exit (Boot::bootWeb ($ paths ));
Original file line number Diff line number Diff line change 10
10
* the LICENSE file that was distributed with this source code.
11
11
*/
12
12
13
+ use CodeIgniter \Boot ;
14
+ use Config \Paths ;
15
+
13
16
/*
14
17
* --------------------------------------------------------------------
15
18
* CODEIGNITER COMMAND-LINE TOOLS
@@ -76,9 +79,9 @@ chdir(FCPATH);
76
79
require FCPATH . '../app/Config/Paths.php ' ;
77
80
// ^^^ Change this line if you move your application folder
78
81
79
- $ paths = new Config \ Paths ();
82
+ $ paths = new Paths ();
80
83
81
84
// LOAD THE FRAMEWORK BOOTSTRAP FILE
82
85
require $ paths ->systemDirectory . '/Boot.php ' ;
83
86
84
- exit (CodeIgniter \ Boot::bootSpark ($ paths ));
87
+ exit (Boot::bootSpark ($ paths ));
Original file line number Diff line number Diff line change 1
1
<?php declare (strict_types=1 );
2
+ use CodeIgniter \Debug \Toolbar ;
3
+ use CodeIgniter \View \Parser ;
4
+
2
5
/**
3
- * @var CodeIgniter\Debug\ Toolbar $this
4
- * @var int $totalTime
5
- * @var int $totalMemory
6
- * @var string $url
7
- * @var string $method
8
- * @var bool $isAJAX
9
- * @var int $startTime
10
- * @var int $totalTime
11
- * @var int $totalMemory
12
- * @var float $segmentDuration
13
- * @var int $segmentCount
14
- * @var string $CI_VERSION
15
- * @var array $collectors
16
- * @var array $vars
17
- * @var array $styles
18
- * @var CodeIgniter\View\ Parser $parser
6
+ * @var Toolbar $this
7
+ * @var int $totalTime
8
+ * @var int $totalMemory
9
+ * @var string $url
10
+ * @var string $method
11
+ * @var bool $isAJAX
12
+ * @var int $startTime
13
+ * @var int $totalTime
14
+ * @var int $totalMemory
15
+ * @var float $segmentDuration
16
+ * @var int $segmentCount
17
+ * @var string $CI_VERSION
18
+ * @var array $collectors
19
+ * @var array $vars
20
+ * @var array $styles
21
+ * @var Parser $parser
19
22
*/
20
23
?>
21
24
<style>
Original file line number Diff line number Diff line change 11
11
* the LICENSE file that was distributed with this source code.
12
12
*/
13
13
14
- class RegistrarConfig extends CodeIgniter \Config \BaseConfig
14
+ use CodeIgniter \Config \BaseConfig ;
15
+
16
+ class RegistrarConfig extends BaseConfig
15
17
{
16
18
public $ foo = 'bar ' ;
17
19
public $ bar = [
Original file line number Diff line number Diff line change 11
11
* the LICENSE file that was distributed with this source code.
12
12
*/
13
13
14
- class SimpleConfig extends CodeIgniter \Config \BaseConfig
14
+ use CodeIgniter \Config \BaseConfig ;
15
+
16
+ class SimpleConfig extends BaseConfig
15
17
{
16
18
public $ QZERO ;
17
19
public $ QZEROSTR ;
You can’t perform that action at this time.
0 commit comments