PluginProbe
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses / trunk
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses vtrunk
2.10.0 2.10.01 2.9.1 2.9.0 2.8.1 2.8.0 2.7.7 2.7.5 2.7.0 2.6.01 2.6.0 2.5.0 2.4.01 trunk 1.0.90 1.0.91 1.0.92 1.0.93 1.0.94 1.0.95 1.0.96 1.0.97 1.0.98 1.0.99 1.1.0 All 77 releases
fluent-community / boot / globals.php

globals.php in FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses trunk, at boot/globals.php

30 lines 882 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
2 <?php
3
4 /**
5 ***** DO NOT CALL ANY FUNCTIONS DIRECTLY FROM THIS FILE ******
6 *
7 * This file will be loaded even before the framework is loaded
8 * so the $app is not available here, only declare functions here.
9 */
10
11
12 /**
13 * Get the fluent coommunity application instance
14 *
15 * @param string $module The binding/key name for a component.
16 * @param array $parameters constructor dependencies if any.
17 * @return \FluentCommunity\Framework\Foundation\Application|mixed
18 */
19 function fluentCommunityApp($module = null, $parameters = [])
20 {
21 return \FluentCommunity\App\App::make($module, $parameters);
22 }
23
24 function fluentCommunitySanitizeArray($array)
25 {
26 return array_map(function ($value) {
27 return is_array($value) ? fluentCommunitySanitizeArray($value) : sanitize_text_field($value);
28 }, $array);
29 }
30