PluginProbe
Depicter — Popup & Slider Builder / 1.6.2
Depicter — Popup & Slider Builder v1.6.2
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 1.6.2, at app/config.php

167 lines 5.0 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\Front\ServiceProvider::class,
38 \Depicter\View\ViewServiceProvider::class,
39 \Depicter\WordPress\RestApiServiceProvider::class,
40 \Depicter\WordPress\AdminServiceProvider::class,
41 \Depicter\WordPress\AssetsServiceProvider::class,
42 \Depicter\WordPress\EventsServiceProvider::class,
43 \Depicter\WordPress\ShortcodesServiceProvider::class,
44 \Depicter\WordPress\PluginServiceProvider::class,
45 \Depicter\WordPress\WidgetsServiceProvider::class,
46 \Depicter\WordPress\SVGServiceProvider::class,
47 \Depicter\WordPress\PermissionsServiceProvider::class,
48 \Depicter\WordPress\WPCronServiceProvider::class,
49 \Depicter\Modules\ModulesServiceProvider::class
50 ],
51
52 /**
53 * Array of route group definitions and default attributes.
54 * All of these are optional so if we are not using
55 * a certain group of routes we can skip it.
56 * If we are not using routing at all we can skip
57 * the entire 'routes' option.
58 */
59 'routes' => [
60 'web' => [
61 'definitions' => __DIR__ . DIRECTORY_SEPARATOR . 'routes' . DIRECTORY_SEPARATOR . 'web.php',
62 'attributes' => [
63 'namespace' => 'Depicter\\Controllers\\Web\\',
64 ],
65 ],
66 'admin' => [
67 'definitions' => __DIR__ . DIRECTORY_SEPARATOR . 'routes' . DIRECTORY_SEPARATOR . 'admin.php',
68 'attributes' => [
69 'namespace' => 'Depicter\\Controllers\\Admin\\',
70 ],
71 ],
72 'ajax' => [
73 'definitions' => __DIR__ . DIRECTORY_SEPARATOR . 'routes' . DIRECTORY_SEPARATOR . 'ajax.php',
74 'attributes' => [
75 'namespace' => 'Depicter\\Controllers\\Ajax\\',
76 ],
77 ],
78 ],
79
80 /**
81 * View Composers settings.
82 */
83 'view_composers' => [
84 'namespace' => 'Depicter\\ViewComposers\\',
85 ],
86
87 /**
88 * Register middleware class aliases.
89 * Use fully qualified middleware class names.
90 *
91 * Internal aliases that you should avoid overriding:
92 * - 'flash'
93 * - 'old_input'
94 * - 'csrf'
95 * - 'user.logged_in'
96 * - 'user.logged_out'
97 * - 'user.can'
98 */
99 'middleware' => [
100 'cache' => \Depicter\Middleware\CacheMiddleware::class,
101 'cors' => \Depicter\Middleware\CORSMiddleware::class,
102 'csrf-api' => \Depicter\Middleware\CsrfAPIMiddleware::class,
103 'nonce' => \Depicter\Middleware\NonceFieldMiddleware::class,
104 'userCan' => \Depicter\Middleware\CapabilityMiddleware::class
105 ],
106
107 /**
108 * Register middleware groups.
109 * Use fully qualified middleware class names or registered aliases.
110 * There are a couple built-in groups that you may override:
111 * - 'web' - Automatically applied to web routes.
112 * - 'admin' - Automatically applied to admin routes.
113 * - 'ajax' - Automatically applied to ajax routes.
114 * - 'global' - Automatically applied to all of the above.
115 * - 'wpemerge' - Internal group applied the same way 'global' is.
116 *
117 * Warning: The 'wpemerge' group contains some internal WP Emerge
118 * middleware which you should avoid overriding.
119 */
120 'middleware_groups' => [
121 'global' => [],
122 'web' => [],
123 'ajax' => [], //['csrf:_masterCsrfToken'],
124 'admin' => [],
125 ],
126
127 /**
128 * Optionally specify middleware execution order.
129 * Use fully qualified middleware class names.
130 */
131 'middleware_priority' => [
132 // phpcs:ignore
133 // \Depicter\Middleware\MyMiddlewareThatShouldRunFirst::class,
134 // \Depicter\Middleware\MyMiddlewareThatShouldRunSecond::class,
135 ],
136
137 /**
138 * Custom directories to search for views.
139 * Use absolute paths or leave blank to disable.
140 * Applies only to the default PhpViewEngine.
141 */
142 'views' => [ dirname( __DIR__ ) . DIRECTORY_SEPARATOR . 'views' ],
143
144 /**
145 * App Core configuration.
146 */
147 'app_core' => [
148 'path' => dirname( __DIR__ ),
149 'url' => plugin_dir_url( DEPICTER_PLUGIN_FILE ),
150 ],
151
152 /**
153 * Debug settings.
154 */
155 'debug' => [
156 // Enable debug mode. Defaults to the value of WP_DEBUG.
157 'enable' => true,
158 // Enable the use of filp/whoops for an enhanced error interface. Defaults to true.
159 'pretty_errors' => false
160 ],
161
162 /**
163 * Other config goes after this comment.
164 */
165
166 ];
167