src/classes/App.php
private function loadLibraries()
    {
        /**
         * Setup for 'respect/validation'
         */
        Validator::with("SkeletonCore\\Validation\\Rules\\");
        Validator::with(get_app_namespace() . "\\Validation\\Rules\\");

        /**
         * Enable tracy debug bar
         */
        $debugbar_enabled = filter_var(app_env('DEBUG_BAR_ON', false), FILTER_VALIDATE_BOOLEAN);
        if (is_dev() && $debugbar_enabled && PHP_SAPI !== "cli")
        {
            Debugger::enable(Debugger::DEVELOPMENT, storage_path('logs'));
            Debugger::timer();

            if (file_exists($directory = app_path("Debugbars")))
            {
                $debugbar_files = get_files($directory);

                if (!empty($debugbar_files))
                {
                    $debugbars = array_map(function($debugbar) use($directory) {
                        $new_debugbar = str_replace("{$directory}/", "", $debugbar);
                        return basename(str_replace("/", "\\", $new_debugbar), ".php");
                    }, $debugbar_files);

                    foreach ($debugbars as $debugbar) {
                        $classPanel = get_app_namespace() . "Debugbars\\{$debugbar}";
                        Debugger::getBar()->addPanel(new $classPanel);
                    }
                }
            }
        }
    }
private function loadLibraries()
    {
        /**
         * Setup for 'respect/validation'
         */
        Validator::with("SkeletonCore\\Validation\\Rules\\");
        Validator::with(get_app_namespace() . "\\Validation\\Rules\\");

        /**
         * Enable tracy debug bar
         */
        $debugbar_enabled = filter_var(app_env('DEBUG_BAR_ON', false), FILTER_VALIDATE_BOOLEAN);
        if (is_dev() && $debugbar_enabled && PHP_SAPI !== "cli")
        {
            Debugger::enable(Debugger::DEVELOPMENT, storage_path('logs'));
            Debugger::timer();

            if (file_exists($directory = app_path("Debugbars")))
            {
                $debugbar_files = get_files($directory);

                if (!empty($debugbar_files))
                {
                    $debugbars = array_map(function($debugbar) use($directory) {
                        $new_debugbar = str_replace("{$directory}/", "", $debugbar);
                        return basename(str_replace("/", "\\", $new_debugbar), ".php");
                    }, $debugbar_files);

                    foreach ($debugbars as $debugbar) {
                        $classPanel = get_app_namespace() . "Debugbars\\{$debugbar}";
                        Debugger::getBar()->addPanel(new $classPanel);
                    }
                }
            }
        }
    }
private function loadLibraries ( ) { /**
         * Setup for 'respect/validation'
         */ Validator :: with ( "SkeletonCore\\Validation\\Rules\\" ) ; Validator :: with ( get_app_namespace ( ) . "\\Validation\\Rules\\" ) ; /**
         * Enable tracy debug bar
         */ $ debugbar_enabled = filter_var ( app_env ( 'DEBUG_BAR_ON' , false ) , FILTER_VALIDATE_BOOLEAN ) ; if ( is_dev ( ) && $ debugbar_enabled && PHP_SAPI !== "cli" ) { Debugger :: enable ( Debugger :: DEVELOPMENT , storage_path ( 'logs' ) ) ; Debugger :: timer ( ) ; if ( file_exists ( $ directory = app_path ( "Debugbars" ) ) ) { $ debugbar_files = get_files ( $ directory ) ; if ( ! empty ( $ debugbar_files ) ) { $ debugbars = array_map ( function ( $ debugbar ) use ( $ directory ) { $ new_debugbar = str_replace ( "{$directory}/" , "" , $ debugbar ) ; return basename ( str_replace ( "/" , "\\" , $ new_debugbar ) , ".php" ) ; } , $ debugbar_files ) ; foreach ( $ debugbars as $ debugbar ) { $ classPanel = get_app_namespace ( ) . "Debugbars\\{$debugbar}" ; Debugger :: getBar ( ) -> addPanel ( new $ classPanel ) ; } } } } }
Load the libraries of the application.

@return void
Load the libraries of the application .