| 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 |
|