tests/APP/Bootstrap.php
/**
     * Prepare a phramework instance.
     *
     * @uses Bootstrap::getSettings() to fetch the settings
     * @return Phramework
     */
Prepare a phramework instance.
@uses Bootstrap::getSettings() to fetch the settings
@return Phramework
Prepare a phramework instance . @uses Bootstrap :: getSettings () to fetch the settings @return Phramework
public static function prepare()
    {
        $settings = self::getSettings();
        $phramework = new Phramework(
            $settings,
            new \Phramework\URIStrategy\URITemplate([
                [
                    'query_log/',
                    \Phramework\LogJSONAPI\Controllers\QueryLogController::class,
                    'GET',
                    Phramework::METHOD_GET
                ],
                [
                    'query_log/{id}',
                    \Phramework\LogJSONAPI\Controllers\QueryLogController::class,
                    'GETById',
                    Phramework::METHOD_GET
                ],
                [
                    'system_log/',
                    \Phramework\LogJSONAPI\Controllers\SystemLogController::class,
                    'GET',
                    Phramework::METHOD_GET
                ],
                [
                    'system_log/{id}',
                    \Phramework\LogJSONAPI\Controllers\SystemLogController::class,
                    'GETById',
                    Phramework::METHOD_GET
                ]
            ])
        );
        return $phramework;
    }
public static function prepare ( ) { $ settings = self :: getSettings ( ) ; $ phramework = new Phramework ( $ settings , new \ Phramework \ URIStrategy \ URITemplate ( [ [ 'query_log/' , \ Phramework \ LogJSONAPI \ Controllers \ QueryLogController :: class , 'GET' , Phramework :: METHOD_GET ] , [ 'query_log/{id}' , \ Phramework \ LogJSONAPI \ Controllers \ QueryLogController :: class , 'GETById' , Phramework :: METHOD_GET ] , [ 'system_log/' , \ Phramework \ LogJSONAPI \ Controllers \ SystemLogController :: class , 'GET' , Phramework :: METHOD_GET ] , [ 'system_log/{id}' , \ Phramework \ LogJSONAPI \ Controllers \ SystemLogController :: class , 'GETById' , Phramework :: METHOD_GET ] ] ) ) ; return $ phramework ; }
Prepare a phramework instance.
Prepare a phramework instance .