PluginProbe
Depicter — Popup & Slider Builder / trunk
Depicter — Popup & Slider Builder vtrunk
4.8.1 trunk 1.0.0 1.1.0 1.1.2 1.1.4 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.5 1.3.8 1.5.0 1.5.1 1.5.2 1.5.5 1.6.0 1.6.1 1.6.2 1.7.0 All 76 releases
depicter / app / config.php

config.php in Depicter — Popup & Slider Builder trunk, at app/config.php

169 lines 5.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Configuration class.
4 *
5 *
6 * @package depicter
7 * @license LICENSE.txt
8 * @author averta
9 * @link https://depicter.com/
10 */
11
12
13 if( ! defined( 'DEPICTER_REVISIONS' ) ){
14 define( 'DEPICTER_REVISIONS', 15 );
15 }
16
17 return [
18 /**
19 * Array of service providers you wish to enable.
20 */
21 'providers' => [
22 \WPEmergeAppCore\AppCore\AppCoreServiceProvider::class,
23 \WPEmergeAppCore\Assets\AssetsServiceProvider::class,
24 \WPEmergeAppCore\Avatar\AvatarServiceProvider::class,
25 \WPEmergeAppCore\Config\ConfigServiceProvider::class,
26 \WPEmergeAppCore\Image\ImageServiceProvider::class,
27 \WPEmergeAppCore\Sidebar\SidebarServiceProvider::class,
28 \Depicter\Security\SecurityServiceProvider::class,
29 \Depicter\Middleware\MiddlewareServiceProvider::class,
30 \Depicter\Services\ServiceProvider::class,
31 \Depicter\Routing\RouteConditionsServiceProvider::class,
32 \Depicter\DataSources\ServiceProvider::class,
33 \Depicter\Document\ServiceProvider::class,
34 \Depicter\Database\DatabaseServiceProvider::class,
35 \Depicter\Editor\EditorServiceProvider::class,
36 \Depicter\Dashboard\DashboardServiceProvider::class,
37 \Depicter\Rules\ServiceProvider::class,
38 \Depicter\Front\ServiceProvider::class,
39 \Depicter\Integration\ServiceProvider::class,
40 \Depicter\View\ViewServiceProvider::class,
41 \Depicter\WordPress\RestApiServiceProvider::class,
42 \Depicter\WordPress\AdminServiceProvider::class,
43 \Depicter\WordPress\AssetsServiceProvider::class,
44 \Depicter\WordPress\EventsServiceProvider::class,
45 \Depicter\WordPress\ShortcodesServiceProvider::class,
46 \Depicter\WordPress\PluginServiceProvider::class,
47 \Depicter\WordPress\WidgetsServiceProvider::class,
48 \Depicter\WordPress\SVGServiceProvider::class,
49 \Depicter\WordPress\PermissionsServiceProvider::class,
50 \Depicter\WordPress\WPCronServiceProvider::class,
51 \Depicter\Modules\ModulesServiceProvider::class
52 ],
53
54 /**
55 * Array of route group definitions and default attributes.
56 * All of these are optional so if we are not using
57 * a certain group of routes we can skip it.
58 * If we are not using routing at all we can skip
59 * the entire 'routes' option.
60 */
61 'routes' => [
62 'web' => [
63 'definitions' => __DIR__ . DIRECTORY_SEPARATOR . 'routes' . DIRECTORY_SEPARATOR . 'web.php',
64 'attributes' => [
65 'namespace' => 'Depicter\\Controllers\\Web\\',
66 ],
67 ],
68 'admin' => [
69 'definitions' => __DIR__ . DIRECTORY_SEPARATOR . 'routes' . DIRECTORY_SEPARATOR . 'admin.php',
70 'attributes' => [
71 'namespace' => 'Depicter\\Controllers\\Admin\\',
72 ],
73 ],
74 'ajax' => [
75 'definitions' => __DIR__ . DIRECTORY_SEPARATOR . 'routes' . DIRECTORY_SEPARATOR . 'ajax.php',
76 'attributes' => [
77 'namespace' => 'Depicter\\Controllers\\Ajax\\',
78 ],
79 ],
80 ],
81
82 /**
83 * View Composers settings.
84 */
85 'view_composers' => [
86 'namespace' => 'Depicter\\ViewComposers\\',
87 ],
88
89 /**
90 * Register middleware class aliases.
91 * Use fully qualified middleware class names.
92 *
93 * Internal aliases that you should avoid overriding:
94 * - 'flash'
95 * - 'old_input'
96 * - 'csrf'
97 * - 'user.logged_in'
98 * - 'user.logged_out'
99 * - 'user.can'
100 */
101 'middleware' => [
102 'cache' => \Depicter\Middleware\CacheMiddleware::class,
103 'cors' => \Depicter\Middleware\CORSMiddleware::class,
104 'csrf-api' => \Depicter\Middleware\CsrfAPIMiddleware::class,
105 'nonce' => \Depicter\Middleware\NonceFieldMiddleware::class,
106 'userCan' => \Depicter\Middleware\CapabilityMiddleware::class
107 ],
108
109 /**
110 * Register middleware groups.
111 * Use fully qualified middleware class names or registered aliases.
112 * There are a couple built-in groups that you may override:
113 * - 'web' - Automatically applied to web routes.
114 * - 'admin' - Automatically applied to admin routes.
115 * - 'ajax' - Automatically applied to ajax routes.
116 * - 'global' - Automatically applied to all of the above.
117 * - 'wpemerge' - Internal group applied the same way 'global' is.
118 *
119 * Warning: The 'wpemerge' group contains some internal WP Emerge
120 * middleware which you should avoid overriding.
121 */
122 'middleware_groups' => [
123 'global' => [],
124 'web' => [],
125 'ajax' => [], //['csrf:_masterCsrfToken'],
126 'admin' => [],
127 ],
128
129 /**
130 * Optionally specify middleware execution order.
131 * Use fully qualified middleware class names.
132 */
133 'middleware_priority' => [
134 // phpcs:ignore
135 // \Depicter\Middleware\MyMiddlewareThatShouldRunFirst::class,
136 // \Depicter\Middleware\MyMiddlewareThatShouldRunSecond::class,
137 ],
138
139 /**
140 * Custom directories to search for views.
141 * Use absolute paths or leave blank to disable.
142 * Applies only to the default PhpViewEngine.
143 */
144 'views' => [ dirname( __DIR__ ) . DIRECTORY_SEPARATOR . 'views' ],
145
146 /**
147 * App Core configuration.
148 */
149 'app_core' => [
150 'path' => dirname( __DIR__ ),
151 'url' => plugin_dir_url( DEPICTER_PLUGIN_FILE ),
152 ],
153
154 /**
155 * Debug settings.
156 */
157 'debug' => [
158 // Enable debug mode. Defaults to the value of WP_DEBUG.
159 'enable' => true,
160 // Enable the use of filp/whoops for an enhanced error interface. Defaults to true.
161 'pretty_errors' => false
162 ],
163
164 /**
165 * Other config goes after this comment.
166 */
167
168 ];
169