Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
Autoload
n/a
0 / 0
n/a
0 / 0
0
n/a
0 / 0
1<?php
2
3namespace Config;
4
5use CodeIgniter\Config\AutoloadConfig;
6
7/**
8 * -------------------------------------------------------------------
9 * AUTOLOADER CONFIGURATION
10 * -------------------------------------------------------------------
11 *
12 * This file defines the namespaces and class maps so the Autoloader
13 * can find the files as needed.
14 *
15 * NOTE: If you use an identical key in $psr4 or $classmap, then
16 *       the values in this file will overwrite the framework's values.
17 *
18 * NOTE: This class is required prior to Autoloader instantiation,
19 *       and does not extend BaseConfig.
20 */
21class Autoload extends AutoloadConfig
22{
23    /**
24     * -------------------------------------------------------------------
25     * Namespaces
26     * -------------------------------------------------------------------
27     * This maps the locations of any namespaces in your application to
28     * their location on the file system. These are used by the autoloader
29     * to locate files the first time they have been instantiated.
30     *
31     * The 'Config' (APPPATH . 'Config') and 'CodeIgniter' (SYSTEMPATH) are
32     * already mapped for you.
33     *
34     * You may change the name of the 'App' namespace if you wish,
35     * but this should be done prior to creating any namespaced classes,
36     * else you will need to modify all of those classes for this to work.
37     *
38     * @var array<string, list<string>|string>
39     */
40    public $psr4 = [
41        APP_NAMESPACE => APPPATH,
42    ];
43
44    /**
45     * -------------------------------------------------------------------
46     * Class Map
47     * -------------------------------------------------------------------
48     * The class map provides a map of class names and their exact
49     * location on the drive. Classes loaded in this manner will have
50     * slightly faster performance because they will not have to be
51     * searched for within one or more directories as they would if they
52     * were being autoloaded through a namespace.
53     *
54     * Prototype:
55     *   $classmap = [
56     *       'MyClass'   => '/path/to/class/file.php'
57     *   ];
58     *
59     * @var array<string, string>
60     */
61    public $classmap = [];
62
63    /**
64     * -------------------------------------------------------------------
65     * Files
66     * -------------------------------------------------------------------
67     * The files array provides a list of paths to __non-class__ files
68     * that will be autoloaded. This can be useful for bootstrap operations
69     * or for loading functions.
70     *
71     * Prototype:
72     *   $files = [
73     *       '/path/to/my/file.php',
74     *   ];
75     *
76     * @var list<string>
77     */
78    public $files = [];
79
80    /**
81     * -------------------------------------------------------------------
82     * Helpers
83     * -------------------------------------------------------------------
84     * Prototype:
85     *   $helpers = [
86     *       'form',
87     *   ];
88     *
89     * @var list<string>
90     */
91    public $helpers = ['auth', 'setting'];
92}