PHP Class ApplicationRouting

Since: 2.0
Author: Tijs Verkoyen ([email protected])
Author: Davy Hellemans ([email protected])
Author: Dieter Vanden Eynde ([email protected])
Show file Open project: forkcms/forkcms Class Usage Examples

Public Methods

Method Description
apiController ( Request $request ) : Symfony\Component\HttpFoundation\Response Runs the api requests
backendAjaxController ( ) : Symfony\Component\HttpFoundation\Response Runs the backend ajax requests
backendController ( ) : Symfony\Component\HttpFoundation\Response Runs the backend
backendCronjobController ( ) : Symfony\Component\HttpFoundation\Response Runs the cronjobs
frontendAjaxController ( ) : Symfony\Component\HttpFoundation\Response Runs the frontend ajax requests
frontendController ( ) : Symfony\Component\HttpFoundation\Response Runs the frontend requests
getRoutes ( ) : array Get the possible routes

Protected Methods

Method Description
handleApplication ( ApplicationInterface $application ) : Symfony\Component\HttpFoundation\Response Runs an application and returns the Response
initializeAPI ( string $app, Request $request ) : string
initializeBackend ( string $app ) : string
initializeFrontend ( string $app ) : string

Method Details

apiController() public method

Runs the api requests
public apiController ( Request $request ) : Symfony\Component\HttpFoundation\Response
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\Response

backendAjaxController() public method

Runs the backend ajax requests
public backendAjaxController ( ) : Symfony\Component\HttpFoundation\Response
return Symfony\Component\HttpFoundation\Response

backendController() public method

Runs the backend
public backendController ( ) : Symfony\Component\HttpFoundation\Response
return Symfony\Component\HttpFoundation\Response

backendCronjobController() public method

Runs the cronjobs
public backendCronjobController ( ) : Symfony\Component\HttpFoundation\Response
return Symfony\Component\HttpFoundation\Response

frontendAjaxController() public method

Runs the frontend ajax requests
public frontendAjaxController ( ) : Symfony\Component\HttpFoundation\Response
return Symfony\Component\HttpFoundation\Response

frontendController() public method

Runs the frontend requests
public frontendController ( ) : Symfony\Component\HttpFoundation\Response
return Symfony\Component\HttpFoundation\Response

getRoutes() public static method

Get the possible routes
public static getRoutes ( ) : array
return array

handleApplication() protected method

Runs an application and returns the Response
protected handleApplication ( ApplicationInterface $application ) : Symfony\Component\HttpFoundation\Response
$application ApplicationInterface
return Symfony\Component\HttpFoundation\Response

initializeAPI() protected method

protected initializeAPI ( string $app, Request $request ) : string
$app string The name of the application to load (ex. BackendAjax)
$request Symfony\Component\HttpFoundation\Request
return string The name of the application class we need to instantiate.

initializeBackend() protected method

protected initializeBackend ( string $app ) : string
$app string The name of the application to load (ex. BackendAjax)
return string The name of the application class we need to instantiate.

initializeFrontend() protected method

protected initializeFrontend ( string $app ) : string
$app string The name of the application to load (ex. frontend_ajax)
return string The name of the application class we need to instantiate.