# fluent-community/trunk/boot/globals.php

FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS &amp; Online Courses, version trunk. 30 lines.

- Page: https://pluginprobe.com/plugins/fluent-community/trunk/code/boot/globals.php
- Raw: https://pluginprobe.com/plugins/fluent-community/trunk/raw/boot/globals.php
- Modified: 2024-11-07T12:38:44+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluent-community/trunk/code/boot/globals.php#L10-L20`.

```php
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
<?php

/**
 ***** DO NOT CALL ANY FUNCTIONS DIRECTLY FROM THIS FILE ******
 *
 * This file will be loaded even before the framework is loaded
 * so the $app is not available here, only declare functions here.
 */


/**
 * Get the fluent coommunity application instance
 *
 * @param string $module The binding/key name for a component.
 * @param array $parameters constructor dependencies if any.
 * @return \FluentCommunity\Framework\Foundation\Application|mixed
 */
function fluentCommunityApp($module = null, $parameters = [])
{
    return \FluentCommunity\App\App::make($module, $parameters);
}

function fluentCommunitySanitizeArray($array)
{
    return array_map(function ($value) {
        return is_array($value) ? fluentCommunitySanitizeArray($value) : sanitize_text_field($value);
    }, $array);
}

```
