PHP Класс ApplicationRouting

С версии: 2.0
Автор: Tijs Verkoyen ([email protected])
Автор: Davy Hellemans ([email protected])
Автор: Dieter Vanden Eynde ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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

Описание методов

apiController() публичный Метод

Runs the api requests
public apiController ( Request $request ) : Symfony\Component\HttpFoundation\Response
$request Symfony\Component\HttpFoundation\Request
Результат Symfony\Component\HttpFoundation\Response

backendAjaxController() публичный Метод

Runs the backend ajax requests
public backendAjaxController ( ) : Symfony\Component\HttpFoundation\Response
Результат Symfony\Component\HttpFoundation\Response

backendController() публичный Метод

Runs the backend
public backendController ( ) : Symfony\Component\HttpFoundation\Response
Результат Symfony\Component\HttpFoundation\Response

backendCronjobController() публичный Метод

Runs the cronjobs
public backendCronjobController ( ) : Symfony\Component\HttpFoundation\Response
Результат Symfony\Component\HttpFoundation\Response

frontendAjaxController() публичный Метод

Runs the frontend ajax requests
public frontendAjaxController ( ) : Symfony\Component\HttpFoundation\Response
Результат Symfony\Component\HttpFoundation\Response

frontendController() публичный Метод

Runs the frontend requests
public frontendController ( ) : Symfony\Component\HttpFoundation\Response
Результат Symfony\Component\HttpFoundation\Response

getRoutes() публичный статический Метод

Get the possible routes
public static getRoutes ( ) : array
Результат array

handleApplication() защищенный Метод

Runs an application and returns the Response
protected handleApplication ( ApplicationInterface $application ) : Symfony\Component\HttpFoundation\Response
$application ApplicationInterface
Результат Symfony\Component\HttpFoundation\Response

initializeAPI() защищенный Метод

protected initializeAPI ( string $app, Request $request ) : string
$app string The name of the application to load (ex. BackendAjax)
$request Symfony\Component\HttpFoundation\Request
Результат string The name of the application class we need to instantiate.

initializeBackend() защищенный Метод

protected initializeBackend ( string $app ) : string
$app string The name of the application to load (ex. BackendAjax)
Результат string The name of the application class we need to instantiate.

initializeFrontend() защищенный Метод

protected initializeFrontend ( string $app ) : string
$app string The name of the application to load (ex. frontend_ajax)
Результат string The name of the application class we need to instantiate.