PHP Class Lassi\Lassi

Author: Jabran Rafique ([email protected])
Show file Open project: jabranr/lassi Class Usage Examples

Protected Properties

Property Type Description
$app Slim\Slim
$eloquent Lassi\App\Database
$instance

Public Methods

Method Description
__construct ( Slim\Slim $app = null ) Default constructor
bootstrap ( ) : void Bootstrap the framework
getApp ( ) : Slim\Slim Get app instance
getEloquent ( ) : Database Get eloquent database instance
getInstance ( ) Get a singleton based Database object
setApp ( Slim\Slim $app = null, array $args = [] ) Set app instance
setEloquent ( ) Set eloquent database

Private Methods

Method Description
loadRoutes ( ) : void Load framework app routes

Method Details

__construct() public method

Default constructor
public __construct ( Slim\Slim $app = null )
$app Slim\Slim

bootstrap() public static method

Bootstrap the framework
public static bootstrap ( ) : void
return void

getApp() public method

Get app instance
public getApp ( ) : Slim\Slim
return Slim\Slim

getEloquent() public method

Get eloquent database instance
public getEloquent ( ) : Database
return Lassi\App\Database

getInstance() public static method

Get a singleton based Database object
public static getInstance ( )

setApp() public method

Set app instance
public setApp ( Slim\Slim $app = null, array $args = [] )
$app Slim\Slim
$args array

setEloquent() public method

Set eloquent database
public setEloquent ( )

Property Details

$app protected property

protected Slim,Slim $app
return Slim\Slim

$eloquent protected property

protected Database,Lassi\App $eloquent
return Lassi\App\Database

$instance protected static property

protected static $instance