PHP Class Devise\Pages\RoutesGenerator

Show file Open project: devisephp/cms

Public Methods

Method Description
__construct ( Framework $Framework ) [__construct description]
cacheRoutes ( ) : string Uses the routes array and spits out a string of laravel routes
loadRoutes ( ) : [type] Loads the routes

Protected Methods

Method Description
assertRouteCachingValid ( ) : [type] Asserts that the route cache is not in a weird state
clearDeviseRoutes ( ) : [type] Remove the temporary devise routes file
clearLaravelCache ( ) : [type] Clear the route cache in Laravel Devis Pages won't work properly if these routes are cached
deviseRoutesFile ( ) : [type] Returns the route cache path if the file exists
findDvsPageRoutes ( ) : array Returns the dvs page routes in this system

Method Details

__construct() public method

[__construct description]
public __construct ( Framework $Framework )
$Framework Devise\Support\Framework

assertRouteCachingValid() protected method

Asserts that the route cache is not in a weird state
protected assertRouteCachingValid ( ) : [type]
return [type]

cacheRoutes() public method

Uses the routes array and spits out a string of laravel routes
public cacheRoutes ( ) : string
return string

clearDeviseRoutes() protected method

Remove the temporary devise routes file
protected clearDeviseRoutes ( ) : [type]
return [type]

clearLaravelCache() protected method

Clear the route cache in Laravel Devis Pages won't work properly if these routes are cached
protected clearLaravelCache ( ) : [type]
return [type]

deviseRoutesFile() protected method

Returns the route cache path if the file exists
protected deviseRoutesFile ( ) : [type]
return [type]

findDvsPageRoutes() protected method

Returns the dvs page routes in this system
protected findDvsPageRoutes ( ) : array
return array

loadRoutes() public method

Loads the routes
public loadRoutes ( ) : [type]
return [type]