PluginProbe
Core Framework / trunk
Core Framework vtrunk
2.0.2 2.0.1 2.0.0 1.10.4 trunk 1.10.0 1.10.1 1.10.2 1.10.3 1.3.10 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 1.5.1.1 1.5.2 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.7.0 1.7.1 1.8.0 All 32 releases
core-framework / wp / Config / Classes.php

Classes.php in Core Framework trunk, at wp/Config/Classes.php

61 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * CoreFramework
4 *
5 * @package CoreFramework
6 * @author Core Framework <hello@coreframework.com>
7 * @copyright 2023 Core Framework
8 * @license MIT
9 * @link https://coreframework.com
10 */
11
12 declare (strict_types = 1);
13
14 namespace CoreFramework\Config;
15
16 /**
17 * This array is being used in ../Scaffold.php to instantiate the classes
18 *
19 * @package CoreFramework\Config
20 * @since 0.0.0
21 */
22 final class Classes {
23
24 /**
25 * Init the classes inside these folders based on type of request.
26 *
27 * @see Requester for all the type of requests or to add your own
28 */
29 public static function get(): array {
30 return array(
31 array( 'init' => 'Integrations' ),
32 array( 'init' => 'App\\General' ),
33 array(
34 'init' => 'App\\Frontend',
35 'on_request' => 'frontend',
36 ),
37 array(
38 'init' => 'App\\Backend',
39 'on_request' => 'backend',
40 ),
41 array(
42 'init' => 'App\\Rest',
43 'on_request' => 'rest',
44 ),
45 array(
46 'init' => 'App\\Oxygen',
47 'on_request' => 'oxygen',
48 ),
49 array(
50 'init' => 'App\\Bricks',
51 'on_request' => 'bricks',
52 ),
53 array(
54 'init' => 'App\\Gutenberg\\Gutenberg',
55 'on_request' => 'gutenberg',
56 ),
57 array( 'init' => 'Compatibility' ),
58 );
59 }
60 }
61