PHP Class ApplicationRouting

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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

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

backendAjaxController() public méthode

Runs the backend ajax requests
public backendAjaxController ( ) : Symfony\Component\HttpFoundation\Response
Résultat Symfony\Component\HttpFoundation\Response

backendController() public méthode

Runs the backend
public backendController ( ) : Symfony\Component\HttpFoundation\Response
Résultat Symfony\Component\HttpFoundation\Response

backendCronjobController() public méthode

Runs the cronjobs
public backendCronjobController ( ) : Symfony\Component\HttpFoundation\Response
Résultat Symfony\Component\HttpFoundation\Response

frontendAjaxController() public méthode

Runs the frontend ajax requests
public frontendAjaxController ( ) : Symfony\Component\HttpFoundation\Response
Résultat Symfony\Component\HttpFoundation\Response

frontendController() public méthode

Runs the frontend requests
public frontendController ( ) : Symfony\Component\HttpFoundation\Response
Résultat Symfony\Component\HttpFoundation\Response

getRoutes() public static méthode

Get the possible routes
public static getRoutes ( ) : array
Résultat array

handleApplication() protected méthode

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

initializeAPI() protected méthode

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

initializeBackend() protected méthode

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

initializeFrontend() protected méthode

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